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

Re: Multiple branches and git-svn

From
David Kastrup <dak@gnu.org>
Date
Aug 21, 2007, 12:53 UTC
Message-ID
<86sl6df3qk.fsf@lola.quinscape.zz>
In-Reply-To
<86wsvpf4k7.fsf@lola.quinscape.zz>
David Kastrup <dak@gnu.org> writes:
Show 30 quoted lines
> David Watson <dwatson@mimvista.com> writes:
>
>> Yes, that's quite true. It took me quite a while to figure that out
>> when I first started using git-svn, and its non-sensicalness nearly
>> put me off using git entirely. My workflow at this point is to use
>> git-cherry-pick -e to pull in any changes from other branches, then
>> delete the git-svn-id line.
>>
>> Essentially, merging using git-svn is almost entirely broken, since
>> an inconsistent tool is worthless - you spend more time figuring out
>> if it's going to break, and working around the breakage, than you
>> save using it.
>
> Full agreement.
>
>> Now, I'm not sure this is 100% the fault of git-svn. Perhaps keeping
>> its metadata about which SVN branch it's connected to isn't the best
>> thing, but git-merge is doing exactly what you ask for.  Perhaps we
>> need a merge command in git-svn that does the right thing?
>
> Git svn needs to recognize a merge for what it is, and has to ignore
> the branch which has been merged, looking further for git-svn-id lines
> or whatever.  Cherrypicking is harder to contain.  Basically, I think
> it is a mistake to use something as fragile as the git-svn-id line in
> the log for determining the branch to use for committing.  Instead, a
> fixed association of git branches with git-svn should be established.
> Even if one needs to write this manually into some configuration file.
> Before git-svn does not have reliable information, it should refuse to
> commit.  One could specify this on the command line, too: that is a
> small price to pay for being sure that one commits where one wants to.
PostScriptum: that is probably all nonsense.  git-svn fetch knows what
to fetch, and probably also what to merge (this should be quite
similar to git pull's behavior), and git-svn rebase/dcommit should not
do anything different.
-- 
David Kastrup
Previous: David KastrupNext: Pierre Habouzit
Message 6 of 9 in “Multiple branches and git-svn”
  1. David KastrupAug 15, 2007
  2. Benoit SIGOUREAug 21, 2007
  3. David KastrupAug 21, 2007
  4. David WatsonAug 21, 2007
  5. David KastrupAug 21, 2007
  6. David KastrupAug 21, 2007
  7. Pierre HabouzitAug 21, 2007
  8. Benoit SIGOUREAug 21, 2007
  9. Benoit SIGOUREAug 21, 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.