Add earlier history retroactively?

Nikolaus Rath Nikolaus at rath.org
Thu Apr 8 13:35:10 CDT 2010


Nikolaus Rath <Nikolaus at rath.org> writes:
> Predrag Minic <mipedja at gmail.com> writes:
>>> Is it also possible to retroactively add the old subversion history to
>>> an already existing mercurial repository? How would I go about that?
>>
>> You can convert a subversion repository, then pull (with -f) that one
>> into your existing repository, and then rebase the existing changes
>> (with --config ui.merge=internal:other) on top of the pulled svn repo.
>
> Ok, I converted my subversion repository into ../s3ql-from-svn and cloned
[...]
>
> But now I lost all my subversion tags.

I did a bit of reading, and I think I figured it out. Please correct me
if I'm wrong:

 - Tags are stored in the .hgtags file
 - Since I specified --config ui.merge=internal:other, the .hgtags
   file from my converted svn repository was overwritten by the one in
   the initial import of the hg rep.
 - I can fix this by manually adding the contents of .hgtags in the
   converted svn rep to the "current" hg rep.

   
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