Does hgsvn support lossless, bidirectional svn<->hg sync

Mads Kiilerich mads at kiilerich.com
Wed May 9 16:07:15 CDT 2007


Antoine Pitrou wrote, On 05/09/2007 06:26 PM:
> Le mercredi 09 mai 2007 à 17:08 +0100, Kunle Odutola a écrit :
>   
>> 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.
>   

The "push" will (at least in the common (ie in my) case) be a submission 
to upstream to a project with a centralized VCS. As good citizens the 
submission should play by the rules of a centralized VCS, not by the 
rules that applies when you use Mercurial.

So IMHO it is just fine that the hg commit history (with commit dates 
and author) not is used on submission. Instead I would like to make a 
new commit message when I push one or more mercurial changes upstream. 
That is already possible with hgsvn. What I need is a way to 
syncronize/merge the mercurial changeset I pushed with the corresponding 
changeset I will get when I pull a moment later.

/Mads





More information about the Mercurial mailing list