Best way to mirror subversion?
Ralf Schmitt
ralf at brainbot.com
Thu Jul 19 05:17:00 CDT 2007
Sean Kelley wrote:
> I have been using hgsvn to mirror some subversion repositories. I
> have a cronjob that does nightly calls to hgpullsvn in each mirror.
> However, I just noted that there are artifacts gettting introduced
> into mercurial repository.
>
> A recent sync with our readonly mirror produced the usual
> conflict marker text:
>
> <<<<<<<< .mine
> BLAH
> ========
> OTHER_STUFF
> >>>>>>>> .r1234
>
> It looks like spurious conflicts are being introduced into the text
> contained inside the mirror repository.
>
> But our files in SVN have never contained those kinds of failed merge
> reports. Does hgsvnpull just do its work by checking out the pre-state,
> applying the patch gotten by doing "svn diff -rM:N", then commit the
> result?
>
I think it just doesn an svn up -r for each revision, which introduces
changes on the path you are converting.
> Should I not be using hgpullsvn? Is it broken? Is there a safer way to mirror?
>
We've used hgsvn to convert part of a subversion repository with more
than 8000 revisions without any problems. I did a diff of the converted
repo and the original and they were the same.
> Sean
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
More information about the Mercurial
mailing list