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

add a new file to the repository

admin

annotate

annotate

show modification info for each line in a file

checkout

clone (Update)

create a working directory from a repository (use update to change an existing working directory)

commit

commit (push)

commit outstanding changes to a new changeset (use push to send commits to remote repository)

diff

diff

diff revisions, or compare the tip to the working directory

export

archive

produce an unversioned snapshot of a repository - Mercurial export is a different operation

history

import

addremove

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

serve

export repository remotely

Running a server (for CVS) and Publishing Repositories

log

log

show revision history of repository or file

login, logout

Authenticated access (for CVS)

pserver

serve

export repository remotely

Running a server (for CVS) and Publishing Repositories

rannotate

rdiff

export

export changeset in patch file format

release

remove

remove

remove the specified files on the next commit

rlog

rtag

tag

add a tag for a changeset

server

serve

export repository remotely

Running a server (for CVS) and Publishing Repositories

status

status

show changed files in working directory

tag

tag

add a tag for a changeset

Modules, branching and tagging (for CVS)

unedit

update

pull -u

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)

CvsCommands (last edited 2012-11-06 13:50:26 by abuehl)