Friday, December 19, 2008

Mercurial - distributed version control

Pull changes from another machine
hg pull http://ip:port

After pull, everything is in local repository. To copy it to your workspace,
hg update
It will copy files from repository to local workspace.

To check the branches
hg branches

Before commit, you'd better check what is changed
hg status -mard

To commit
hg commit -m "message..." fileName

If filename is not provided, it will check in all changes.

To delete a file in repository
hg remove -f filename
hg commit -m "message" filename

Hmmm...... Mercurial does not support checking in empty directory...

No comments:

Post a Comment