Differences between revisions 23 and 24
Revision 23 as of 2009-05-20 09:10:54
Size: 2494
Comment: Remove wiki link.
Revision 24 as of 2009-11-14 22:16:18
Size: 3470
Editor: PaulBoddie
Comment: Changed checkout equivalent: cvs checkout is used primarily to make new working directories. Added references. Changed links: WikiNames don't seem to suit the general format.
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
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. 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.
Line 5: Line 5:
|| '''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]] [[Revision]]s, 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 || [[CvsConcepts#server|read this]] - export [[Repository]] via HTTP ||
|| log || log || show [[Revision]] history of [[Repository]] or file ||
|| login || || [[CvsConcepts#login|read this]] ||
|| logout || || ||
|| pserver || serve || [[CvsConcepts#server|read this]] - export [[Repository]] via HTTP ||
|| rannotate || || ||
|| rdiff || export || [[Export]] ChangeSet in PatchFile format ||
|| release || || ||
|| remove || remove || remove the specified files on the next [[Commit]] ||
|| rlog || || ||
|| rtag || tag || add a [[Tag]] for a ChangeSet ||
|| server || serve || [[CvsConcepts#server|read this]] - export [[Repository]] via HTTP ||
|| status || status || show changed files in WorkingDirectory ||
|| tag || tag || [[CvsConcepts#tag|read this]] - add a [[Tag]] for a ChangeSet ||
|| unedit || || ||
|| update || update || update or merge WorkingDirectory, use pull before update to get remote changes ||
|| version || version || print version and copyright information ||
|| watch || || [[CvsConcepts#watch|read this]] ||
|| watchers || || [[CvsConcepts#watch|read this]] ||
|| '''CVS''' || '''Mercurial''' || '''Meaning''' || '''References''' ||
|| add || add || add a new file to the [[Repository|repository]] || ||
|| admin || || || ||
|| annotate || annotate || show modification info for each line in a file || ||
|| checkout || clone (update) || create a [[WorkingDirectory|working directory]] from a repository (use update to change an existing [[WorkingDirectory|working directory]]) || ||
|| commit || commit (push) || [[Commit|commit]] outstanding changes to a new [[ChangeSet|changeset]] (use push to send commits to remote repository) || ||
|| diff || diff || [[Diff|diff]] [[Revision|revisions]], or compare the [[Tip|tip]] to the [[WorkingDirectory|working directory]] || ||
|| export || archive || produce an unversioned snapshot of a repository - Mercurial [[Export|export]] is a ''different'' operation || ||
|| history || || || ||
|| import || addremove || use addremove and commit to import source trees, Mercurial's [[Import|import]] only imports patches || ||
|| init || init || create a new [[Repository|repository]] from scratch || ||
|| kserver || serve || export [[Repository|repository]] remotely || [[CvsConcepts#server|Running a server]] (for CVS) and [[PublishingRepositories|Publishing Repositories]] ||
|| log || log || show [[Revision|revision]] history of [[Repository|repository]] or file || ||
|| login || || || [[CvsConcepts#Authenticated_access|Authenticated access]] (for CVS) ||
|| logout || || || [[CvsConcepts#Authenticated_access|Authenticated access]] (for CVS) ||
|| pserver || serve || export [[Repository|repository]] remotely || [[CvsConcepts#server|Running a server]] (for CVS) and [[PublishingRepositories|Publishing Repositories]] ||
|| rannotate || || || ||
|| rdiff || export || [[Export|export]] [[ChangeSet|changeset]] in [[PatchFile|patch file]] format || ||
|| release || || || ||
|| remove || remove || remove the specified files on the next [[Commit|commit]] || ||
|| rlog || || || ||
|| rtag || tag || add a [[Tag|tag]] for a [[ChangeSet|changeset]] || ||
|| server || serve || export [[Repository|repository]] remotely || [[CvsConcepts#server|Running a server]] (for CVS) and [[PublishingRepositories|Publishing Repositories]] ||
|| status || status || show changed files in [[WorkingDirectory|working directory]] || ||
|| tag || tag || add a [[Tag|tag]] for a [[ChangeSet|changeset]] || [[CvsConcepts#tag|Modules, branching and tagging]] (for CVS) ||
|| unedit || || || ||
|| update || update || update or merge [[WorkingDirectory|working directory]], use pull before update to get remote changes || ||
|| version || version || print version and copyright information || ||
|| watch || || || [[CvsConcepts#watch|Watching files]] (for CVS) ||
|| watchers || || || [[CvsConcepts#watch|Watching files]] (for CVS) ||

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

init

create a new 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)