Add earlier history retroactively?

Matt Mackall mpm at selenic.com
Thu Apr 8 16:51:00 UTC 2010


On Thu, 2010-04-08 at 08:57 -0400, Nikolaus Rath wrote:
> Hello,
> 
> I have a project that was initally managed in subversion. At some point
> I created a Mercurial repository and imported the most recent subversion
> revision. From that point on, the project was managed in Mercurial.
> 
> Now I have noticed the existence of "hg convert" to convert the entire
> history of a subversion repository. However, it seems to insist on
> creating a fresh mercurial repository.
> 
> Is it also possible to retroactively add the old subversion history to
> an already existing mercurial repository? How would I go about that?

It's not really possible in a seamless way. Mercurial uses cryptographic
hashes as changeset identifiers and changing any bit in a changeset's
history will invalidate its hash. So if you manage to stitch things
together with convert and rebase, etc., you'll end up with a repository
that's incompatible with any clones of your old repo.

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





More information about the Mercurial mailing list