Mercurial equivalents of CVS commands
This table lists Mercurial's equivalents for commands provided by CVS. Many CVS commands that do not have direct equivalents in Mercurial are discussed in CvsConcepts.
CVS |
Mercurial |
Meaning |
References |
add |
add a new file to the repository |
|
|
admin |
|
|
|
annotate |
show modification info for each line in a file |
|
|
checkout |
create a working directory from a repository (use update to change an existing working directory) |
|
|
commit |
commit outstanding changes to a new changeset (use push to send commits to remote repository) |
|
|
diff |
diff revisions, or compare the tip to the working directory |
|
|
export |
produce an unversioned snapshot of a repository - Mercurial export is a different operation |
|
|
history |
|
|
|
import |
use addremove and commit to import source trees, Mercurial's import only imports patches |
|
|
init |
|
CVS's init really only initialises its repository system for use, whereas Mercurial's init creates a new ready-to-use repository from scratch |
|
kserver |
export repository remotely |
Running a server (for CVS) and Publishing Repositories |
|
log |
show revision history of repository or file |
|
|
login, logout |
|
|
Authenticated access (for CVS) |
pserver |
export repository remotely |
Running a server (for CVS) and Publishing Repositories |
|
rannotate |
|
|
|
rdiff |
export changeset in patch file format |
|
|
release |
|
|
|
remove |
remove the specified files on the next commit |
|
|
rlog |
|
|
|
rtag |
add a tag for a changeset |
|
|
server |
export repository remotely |
Running a server (for CVS) and Publishing Repositories |
|
status |
show changed files in working directory |
|
|
tag |
add a tag for a changeset |
Modules, branching and tagging (for CVS) |
|
unedit |
|
|
|
update |
update or merge working directory, mostly equivalent to a combination of pull (to get remote changes) and update in Mercurial |
|
|
version |
version |
print version and copyright information |
|
watch, watchers |
|
|
Watching files (for CVS) |