Summary

The following table summarizes all 21 commands for Mercurial. See Table A.1, “Commands” in Appendix A, Comparison Table for a comparison of Mercurial’s commands with other tools.

OperationMercurial Command
Createhg init
Checkout[a]
Commithg commit
Updatehg update
Addhg add
Edit[b]
Deletehg remove
Renamehg rename
Movehg rename
Statushg status
Diffhg diff
Reverthg revert
Loghg log
Taghg tag[c]
Branchhg branch
Mergehg merge
Resolvehg resolve
Lock[d]
Clonehg clone
Pushhg push
Pullhg pull

[a] N/A: Mercurial keeps the repository instance inside the working copy.

[b] Automatic: Mercurial will notice that the file has changed.

[c] Tags are stored in a version-controlled text file. Causes a commit.

[d] Unsupported