Differences between revisions 25 and 26
Revision 25 as of 2009-11-18 16:43:24
Size: 3527
Editor: PaulBoddie
Comment: Linked commands more extensively.
Revision 26 as of 2010-04-19 17:02:22
Size: 3632
Editor: PaulBoddie
Comment: cvs init isn't the same as hg init.
Deletions are marked like this. Additions are marked like this.
Line 15: Line 15:
|| init || init || create a new [[Repository|repository]] from scratch || || || init ||      || CVS's init really only initialises its repository system for use, whereas Mercurial's init creates a new ready-to-use [[Repository|repository]] from scratch || ||

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

Authenticated access (for CVS)

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

update

update or merge working directory, use pull before update to get remote changes

version

version

print version and copyright information

watch

Watching files (for CVS)

watchers

Watching files (for CVS)

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