Regarding Backing Up Repositories

Matt Mackall mpm at selenic.com
Mon Aug 31 22:59:26 UTC 2009


On Mon, 2009-08-31 at 17:31 +0545, Abhishek Singh wrote:
> Dear All,
>          I had to transfer my hg repositories to a new server. I read
> the backup issue at http://mercurial.selenic.com/wiki/Repository in the
> "Backup" section. I recursively copied the parent directory of all the
> repositories to my new server using scp. Now that i'm able to browse the
> repository through a web interface but push operation is not supported.
> Trying to push gives me an error "creates new remote heads!".

That means your backup has a head that's not present on your original.
In other words, you've either committed directly to your backup (bad) or
removed data in your original (bad, and not possible without using
extensions). Don't do those things and it'll work fine.

> I'm new to mercurial. Can anyone suggest me how to backup all the
> repositories and transfer it to a new server? Any help is appreciated.

Mercurial is not magical, so plain old cp and tar will work without
added faerie dust.

-- 
http://selenic.com : development and support for Mercurial and Linux





More information about the Mercurial mailing list