Mercurial

From CCARH Wiki
Revision as of 21:17, 27 January 2012 by Craig (talk | contribs) (Created page with '== Installation == == Creating == == Renaming files == To rename a file in a mercurial repository, use the <i>rename</i> (or <i>mv</i> command after the <tt>hg</tt> command. …')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Installation

Creating

Renaming files

To rename a file in a mercurial repository, use the rename (or mv command after the hg command. For example to rename oldfile.txt to newfile.txt, do this command:

  hg rename oldfile.txt newfile.txt

This will move the file to the new name as well as stop mercurial from monitoring the old filename and have it start monitoring the new file for changes.

Running the hg status command will display one addition and one removal to the repository:

   hg status
   A newfile.txt
   R oldfile.txt


Links