Skip to content

[Bioc-devel] Git-SVN bridge: Alternative to get commit history?

4 messages · Dan Tenenbaum, Sean Davis, Henrik Bengtsson

#
On September 21, 2014 1:07:29 PM PDT, Henrik Bengtsson <hb at biostat.ucsf.edu> wrote:
I don't know why you'd want to. It will add a lot of cruft to the commit logs but should be safe.
That setting only applies to resolving conflicts during the initial bridge creation.
No.  See the first FAQ at
http://www.bioconductor.org/developers/how-to/git-svn/

Dan
1 day later
#
On Sun, Sep 21, 2014 at 1:35 PM, Dan Tenenbaum <dtenenba at fhcrc.org> wrote:
Thanks for the confirmation; not that I planned to, but I guess below
I just did so with a fresh GitHub repository.  I also wanted to make
sure that if I tried I didn't end up having to get back asking for you
guys to do fixes by hand.
My bad: The https://gitsvn.bioconductor.org/newproject page does say
"How do you want to handle resolving conflicts _when_ creating the
bridge?".

While at the page https://gitsvn.bioconductor.org/newproject:  there
one is asked to enter "Your email address:".   It's not clear what
this address is for.  Will this be the email address reported in the
Git commits?  I entered one of my registered GitHub addresses, and
this far so good.
That FAQ says:

"Can I see old commit history?

After creating a bridge, you can't see old svn commit information from
prior to bridge creation if you're using git. (You can still see it
with svn).

Conversely, in svn, you can't see Git commit messages from before the
bridge was created. You can still see them in git.

Once the bridge is created, you'll see subsequent commit messages from
both git and svn, whether you are using git or svn.

This may change in the future."

My would be that second answer, "You can still see them in git", would
be covered by my (a) approach above, but I wanted to make so I
wouldn't mess with anything.   Contrary from your "No", from this FAQ
it sounds as if it works.  ...and since I'm stubborn, I gave it a try
now knowing that I won't mess things up trying to setup different
combinations of bridges (i.e. dropping and adding a new one).  So...

SUCCESS:
I pulled down the SVN history of aroma.light into a local Git
repository, which I then pushed to a GitHub repository that I then
bridged to Bioconductor (using "svn wins" to avoid any havoc on the
Bioc SVN repository).  I have verified that the bridge works in both
directions.  More importantly, the Git repository hold the complete
history, cf.

https://github.com/HenrikBengtsson/aroma.light/commits/master

and so does the Bioconductor SVN, e.g.

[HB-X201]{hb}: svn log -l 2 https://hedgehog.fhcrc.org/bioconductor/trunk/madm
an/Rpacks/aroma.light
------------------------------------------------------------------------
r94400 | h.bengtsson | 2014-09-22 15:44:00 -0700 (Mon, 22 Sep 2014) | 14 lines

Commit made by the Bioconductor Git-SVN bridge.
Consists of 1 commit.

Commit information:

Commit id: 404621f17b942bc8fe0edb535a2516898b1f4734

    Ping ping from Git

Committed by: hb
Author Name: hb
Commit date: 2014-09-22 15:42:59 -0700
Author date: 2014-09-22 15:42:59 -0700

------------------------------------------------------------------------
r94399 | h.bengtsson | 2014-09-22 15:41:35 -0700 (Mon, 22 Sep 2014) | 1 line

# ping ping.
------------------------------------------------------------------------


Just to make sure, the above seems to work.  Is it that you are aware
of this approach but have found it not to work - in a way that I'm
about to discover - or should I just tap myself on the shoulder and
assume I can stick with this approach?

Thanks,

Henrik
#
Hi, Henrik.

This is the approach that I have been using, also, roughly summarized as:

- git svn clone from bioconductor svn (can take a LONG time, so use git svn
clone -r 40000:HEAD to truncate history to rev40000 in svn)
- git push to github
- setup git-svn bridge
- work with git as normal

Sean

On Mon, Sep 22, 2014 at 6:58 PM, Henrik Bengtsson <hb at biostat.ucsf.edu>
wrote:

  
  
#
Sean, thanks for confirming that it works. /Henrik
On Tue, Sep 23, 2014 at 4:23 AM, Sean Davis <sdavis2 at mail.nih.gov> wrote: