git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-svn merge helper

From
Benoit SIGOURE <tsuna@lrde.epita.fr>
Date
Oct 1, 2007, 07:56 UTC
Message-ID
<0D8A7A3C-8F51-482D-9229-29ADC9585760@lrde.epita.fr>
In-Reply-To
<20071001025059.GA29323@atjola.homenet>
On Oct 1, 2007, at 4:50 AM, Björn Steinbrink wrote:
Show 40 quoted lines
> On 2007.09.30 16:15:49 +0200, Benoit SIGOURE wrote:
>> On Sep 30, 2007, at 1:05 PM, Björn Steinbrink wrote:
>>
>>> Hi,
>>>
>>> I recently discovered git-svn and absolutey love it. One thing  
>>> that I'm
>>> missing though, is an equivalent of "svn merge" for merging  
>>> between svn
>>> remotes, to support the SVN way of using "squashed" merges, where  
>>> you
>>> just note the merge meta-data in the commit message. "git merge"  
>>> didn't
>>> work for me (and probably isn't expected to work) to merge  
>>> between two
>>> svn branches, so I've resorted to cherry-picking the required  
>>> commits
>>> one by one into a temporary branch and then squashing them  
>>> together by
>>> doing a --squash merge with a second temporary branch (as in [1]).
>>
>> I fail to see why you'd want to reproduce the broken behavior of  
>> svn merge.
>>  Anyways, git-svn is a great way to merge SVN branches,  
>> unfortunately it
>> can't detect when merges happened on the SVN side.  I think you  
>> can use it
>> nevertheless by manually adding a graft at the last merge point,  
>> which
>> would help you merging the right revisions without having to  
>> specify what
>> needs to be merged (unless someone made another merge on the SVN  
>> side, in
>> which case you need to update your graft).
>
> Then how does that work? The manpage explicitly says that I should not
> use git-{pull,merge} on branches I want to dcommit from. And a trivial
> test immediately got the expected effect of git-svn trying to  
> commit to
> trunk instead of the branch.

Ah, yes, you're right. Well, this will work the day we can pass an option to git-svn dcommit to tell it where the commit must be sent.

-- 
Benoit Sigoure aka Tsuna
EPITA Research and Development Laboratory
Previous: Björn SteinbrinkNext: Björn Steinbrink
Message 4 of 10 in “git-svn merge helper”
  1. Björn SteinbrinkSep 30, 2007
  2. Benoit SIGOURESep 30, 2007
  3. Björn SteinbrinkOct 1, 2007
  4. Benoit SIGOUREOct 1, 2007
  5. Björn SteinbrinkOct 2, 2007
  6. Steven WalterOct 2, 2007
  7. Björn SteinbrinkOct 2, 2007
  8. Steven WalterOct 3, 2007
  9. Björn SteinbrinkOct 3, 2007
  10. Andreas EricssonOct 3, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.