Boost logo

Boost :

Subject: Re: [boost] [git] Should I commit to SVN or Git?
From: Beman Dawes (bdawes_at_[hidden])
Date: 2013-02-20 09:35:48


On Thu, Feb 14, 2013 at 9:55 AM, Dave Abrahams <dave_at_[hidden]> wrote:
>
> on Thu Feb 14 2013, Daniel Pfeifer <daniel-AT-pfeifer-mail.de> wrote:
>
>> 2013/2/14 Joaquín Mª López Muñoz <joaquin_at_[hidden]>:
>>> Hi,
>>>
>>> I'd like to commit some changes to one of my libs for delivery with
>>> Boost 1.54. Should I use SVN as always or begin now using Git for the
>>> commit?
>>
>> You should commit to SVN. The Svn2Git conversion is still incomplete
>> (Tags are not converted yet).
>
> Note: if you want to use Git for some reason, you can always use git-svn
> to dcommit to the Boost SVN repository. You won't get a modularized view
> of the code that way, but you will be using Git.

Thanks for mentioning git-svn! I've started to use it so that I can
easily work on multiple private branches at the same time, pushing to
a GitHub repo as off-site backup.

The one issue I ran into is a single "git svn dcommit" doing separate
svn commits for each of my local git commits, resulting in 18 svn
commits and totally incomprehensible history. The point of what should
have been a single svn commit ("reimplement path::codecvt() and
path::imbue() portably for more robust behavior") got totally lost.

AFASICT, the fix is to work only on branches, use "git merge
--no-commit --squash" to merge back to master, do a master commit with
a meaningful message, then do the "git svn dcommit".

If anyone has a better approach, please let me know:-)

--Beman


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk