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.
Operation | Mercurial Command |
---|---|
Create | hg init |
Checkout | [a] |
Commit | hg commit |
Update | hg update |
Add | hg add |
Edit | [b] |
Delete | hg remove |
Rename | hg rename |
Move | hg rename |
Status | hg status |
Diff | hg diff |
Revert | hg revert |
Log | hg log |
Tag | hg tag[c] |
Branch | hg branch |
Merge | hg merge |
Resolve | hg resolve |
Lock | [d] |
Clone | hg clone |
Push | hg push |
Pull | hg 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 |