Ben d'état

Ben Scott


~/Restoring/repairing a Mercurial repo from a live .hg copy

05 May 2011

I needed a quick way to clone a repository without any network access. There is probably an easy, safe way of making a bundle to clone from but for now I just copied a live .hg folder into the destination folder and ran hg revert --all. Seems to be relatively stable. Copying the whole repository would have worked as well and wouldn’t require setting up the working copy, but would have taken much longer to compress, copy and decompress.


comments powered by Disqus