Can Mercurial repositories safely be moved/renamed/etc.?

6,611

In short, yes. You can move the .hg repository folder and then pull a new copy of your source.

Share:
6,611

Related videos on Youtube

sipher_z
Author by

sipher_z

Updated on September 17, 2022

Comments

  • sipher_z
    sipher_z almost 2 years

    Can I move the directory a local Mercurial repository is contained in without breaking it, or does it know where it lives and expect it to live there forever? (Coming from SVN with its switch/relocate requirements for moving local repos.)

  • tonfa
    tonfa over 14 years
    You can move .hg or the directory below it. The only thing that might break are the paths defined in .hg/hgrc if they are relative.