Add earlier history retroactively?

Nikolaus Rath Nikolaus at rath.org
Thu Apr 8 13:39:49 CDT 2010


Matt Mackall <mpm at selenic.com> writes:
> 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.

I guess I can live with that, I don't think that I have that many clones
yet :-). What is going to happen with the clones? Are they going to get
a (more or less useful) error message, or will things start to go
mysteriously wrong?


Best,

   -Nikolaus

-- 
 »Time flies like an arrow, fruit flies like a Banana.«

  PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6  02CF A9AD B7F8 AE4E 425C



More information about the Mercurial mailing list