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 |
add |
add |
add a new file to the Repository |
admin |
|
|
annotate |
annotate |
show modification info for each line in a file |
checkout |
update |
update WorkingDirectory to match local repository, use clone to copy a repository |
commit |
commit |
Commit outstanding changes to a new ChangeSet, use push to send commits to remote repository |
diff |
diff |
Diff Revisions, or Tip vs WorkingDirectory |
export |
archive |
CVS export and Mercurial Export are different! |
history |
|
|
import |
addremove |
Use addremove and commit to import source trees, Mercurial's Import only imports patches! |
init |
init |
create a new Repository from scratch |
kserver |
serve |
read this - export Repository via HTTP |
log |
log |
show Revision history of Repository or file |
login |
|
|
logout |
|
|
pserver |
serve |
read this - export Repository via HTTP |
rannotate |
|
|
rdiff |
export |
|
release |
|
|
remove |
remove |
remove the specified files on the next Commit |
rlog |
|
|
rtag |
tag |
|
server |
serve |
read this - export Repository via HTTP |
status |
status |
show changed files in WorkingDirectory |
tag |
tag |
|
unedit |
|
|
update |
update |
update or merge WorkingDirectory, use pull before update to get remote changes |
version |
version |
print version and copyright information |
watch |
|
|
watchers |
|
