Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to use bitbucket to fork a subversion project?

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?

like image 929
Chris R Avatar asked Jul 04 '10 14:07

Chris R


2 Answers

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.

like image 142
Andrey Vlasovskikh Avatar answered Oct 14 '22 16:10

Andrey Vlasovskikh


There are two: hgsubversion, and hgsvn. I might prefer the former, but maybe there are features in one that you need.

like image 36
RyanWilcox Avatar answered Oct 14 '22 18:10

RyanWilcox