Working on hgsvn
Yesterday I’ve taken over maintenance of hgsvn from it’s original author Antoine Pitrou. Many thanks to Antoine at this point for doing a great job on this tool!
In case you don’t know, hgsvn is “a set of scripts to work locally on Subversion checkouts using Mercurial.”
My aim is not to make these scripts a full-blown Subversion extensions for Mercurial. hgsubversion or the convert extension will probably do a much better job with tighter integration as it’s in the scope of hgsvn. So the main focus is on fixing bugs and to finish and release the hgpushsvn script that commits changes in your Mercurial repository back to Subversion.
The reason why I decided to work on this project is pretty simple: I’ve made good experiences with it and I still want to keep using it.
With hgpushsvn the tool provides three scripts for the most basic tasks:
hgimportsvn
initializes a hg repository and fetches the sources from svn, optionally starting at a specific revision.
hgpullsvn
pulls new change sets from svn to your local hg repository.
hgpushsvn
pushes back your local commits to the svn repository.
Using hgsvn for a while now, I’m feeling very comfortable with these scripts and they fit very well into my workflow.
The next things I’m about to do are:
- fix the unittests, at least one is broken ATM
- setup a buildbot to have some automated tests
- finish hgpullsvn
If you’re using hgsvn, please file bug reports or submit patches on the issue tracker.
Comments are closed.
Great work :). Do you plan to make also svn file renaming when file is renamed in hg repository ?
Thanks! I’m not planning to add much features to hgsvn, but renamed files is worth considering.
Thank you for your contributing this project!! hgsvn helps a lot for me, awesome work :D
Good job.
I am trying to use it with a Chinese and Japanese WINXP.
Hi
If I haven’t read permission to some folder when running hgimportsvn && hgpullsvn.
After some days ,I got the read permission to these folders.
The hgpullsvn will not add these folders to hg repository.
This is right,because these folders is not added at this REV.
Do you have some best solution for this situation?
I think it’s best to checkout the repository again. AFAIKT to adjust your current checkout would mean to modify the repositories history as the folders weren’t imported at some point, but should’ve been imported with your new privileges.