== 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 || [[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) ||