Does hgsvn support lossless, bidirectional svn<->hg sync (was: [PATCH] Some yasvn2hg patch)

Sebastien Lucas sebastien.lucas at gmail.com
Wed May 9 20:02:13 UTC 2007


On 5/9/07, Antoine Pitrou <antoine.pitrou at wengo.com> wrote:
> Le mercredi 09 mai 2007 à 17:08 +0100, Kunle Odutola a écrit :
> > Hi Antoine,
> >
> > > For the record, hgsvn is not meant as a one-way converter, but a
> > > tool to use Mercurial with SVN checkouts.
> >
> > Can you explain further what you mean by this statement please?
> >
> > Does hgsvn essentially allow a user to pull Subversion project(s) into
> > Mercurial repository(s), work on the repository(s) in Mercurial as usual
> > then, push the changes incrementally - including all hg commit history -
> > back to the original Subversion project(s)?
>
> For now it only handles the "pull" part. (which is already useful if you
> don't have commit access to the SVN repo :-))
>
> I have ideas and a start of implementation for the "push" part.
> However I fear the "push" will not be as lossless as the "pull" is,
> because the high-level SVN API doesn't allow, to my knowledge,
> specifying the commit date or author.
>
>
> Antoine.
>
>
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
>

If you're also admin on the SVN repo, you can use the
pre-revprop-change hook to alter the author and commit date (like
svnsync does).

Anyway pushing will be quite hard, especially when having multiple
user committing.




More information about the Mercurial mailing list