I have commit rights to a sourceforge project that is owned by the other, primary developer. I'd like to manage my own changes using mercurial, and in fact I'd like to publish them as a fork of this project on bitbucket. However, I want to be able to easily push changes back to the main subversion project; this won't be a hostile fork, just a different path.
Does bitbucket support the svn extensions to Mercurial? If so, how can I use them to fork a sourceforge project?
hgsubversion
is the only tool you need to keep in sync the main Sourceforge svn repo and your Bitbucket hg fork. No special support for forking using it is required from Bitbucket.
Basically, after installing hgsubversion
and creating an empty repo for your fork of the project foo
at Bitbucket you need to this:
$ hg clone https://foo.svn.sourceforge.net/svnroot/foo
$ cd foo
$ hg push https://bitbucket.org/offby1/foo
Then you can use normal push
, pull
, in
and out
hg commands on both hg and svn repos.
There are two: hgsubversion, and hgsvn. I might prefer the former, but maybe there are features in one that you need.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With