Differences between revisions 10 and 29 (spanning 19 versions)
Revision 10 as of 2007-08-13 04:16:47
Size: 2352
Comment:
Revision 29 as of 2012-11-06 13:50:26
Size: 3275
Editor: abuehl
Comment: remove duplicate links
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 || clone || ["Clone"] (copy) a WorkingDirectory to a self-contained repository locally ||
|| commit || commit || ["Commit"] outstanding changes to a new ChangeSet ||
|| diff || diff || ["Diff"] ["Revision"]s, or ["Tip"] vs WorkingDirectory ||
|| export || archive || CVS export and Mercurial ["Export"] are ''different''! ||
|| history || || ||
|| import || || CVS import and Mercurial ["Import"] are ''different''! ||
|| 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 || pull -u || update or merge WorkingDirectory ||
|| version || version || print version and copyright information ||
|| watch || || [:CvsConcepts#watch:read this] ||
|| watchers || || [:CvsConcepts#watch:read this] ||
|| '''CVS''' || '''Mercurial''' || '''Meaning''' || '''References''' ||
|| add || [[Cmd:add]] || add a new file to the [[Repository|repository]] || ||
|| admin || || || ||
|| annotate || [[Cmd:annotate]]|| show modification info for each line in a file || ||
|| checkout || [[Cmd:clone]] ([[Cmd:Update]]) || create a [[WorkingDirectory|working directory]] from a repository (use [[Cmd:update]] to change an existing working directory) || ||
|| commit || [[Cmd:commit]] ([[Cmd:push]]) || commit outstanding changes to a new [[ChangeSet|changeset]] (use [[Cmd:push]] to send commits to remote repository) || ||
|| diff || [[Cmd:diff]] || diff [[Revision|revisions]], or compare the [[Tip|tip]] to the [[WorkingDirectory|working directory]] || ||
|| export || [[Cmd:archive]] || produce an unversioned snapshot of a repository - Mercurial [[Cmd:export]] is a ''different'' operation || ||
|| history || || || ||
|| import || [[Cmd:addremove]] || use addremove and commit to import source trees, Mercurial's [[Cmd: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 || [[Cmd:serve]] || export repository remotely || [[CvsConcepts#server|Running a server]] (for CVS) and [[PublishingRepositories|Publishing Repositories]] ||
|| log || [[Cmd:log]] || show [[Revision|revision]] history of repository or file || ||
|| login, logout || || || [[CvsConcepts#Authenticated_access|Authenticated access]] (for CVS) ||
|| pserver || [[Cmd:serve]] || export repository remotely || [[CvsConcepts#server|Running a server]] (for CVS) and [[PublishingRepositories|Publishing Repositories]] ||
|| rannotate || || || ||
|| rdiff || [[Cmd:export]] || export changeset in [[PatchFile|patch file]] format || ||
|| release || || || ||
|| remove || [[Cmd:remove]] || remove the specified files on the next commit || ||
|| rlog || || || ||
|| rtag || [[Cmd:tag]] || add a tag for a changeset || ||
|| server || [[Cmd:serve]] || export repository remotely || [[CvsConcepts#server|Running a server]] (for CVS) and [[PublishingRepositories|Publishing Repositories]] ||
|| status || [[Cmd:status]] || show changed files in working directory || ||
|| tag || [[Cmd:tag]] || add a tag for a changeset || [[CvsConcepts#tag|Modules, branching and tagging]] (for CVS) ||
|| unedit || || || ||
|| update || [[Cmd:pull|pull -u]] || update or merge working directory, mostly equivalent to a combination of [[Cmd:pull]] (to get remote changes) and [[Cmd:update]] in Mercurial || ||
|| version || version || print version and copyright information || ||
|| watch, 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

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)