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

Re: Multiple branches and git-svn

From
Benoit SIGOURE <tsuna@lrde.epita.fr>
Date
Aug 21, 2007, 10:06 UTC
Message-ID
<9FD13095-36B5-4663-B658-082981B1ACD9@lrde.epita.fr>
In-Reply-To
<864pj16r10.fsf@lola.quinscape.zz>
On Aug 15, 2007, at 12:17 PM, David Kastrup wrote:
Show 14 quoted lines
>
> After having had several embarrassing occurences with git-svn dcommit,
> I think it would not be amiss to mention in the docs just how git-svn
> happens to figure out which Subversion remote it is associated with.
>
> One surprising relevation was that this association changed after a
> git-rebase.
>
> It may be a general git thing, or it may be git-svn specific, but it
> was not exactly what I expected.  And the docs were not really that
> helpful.
>
> In particular, man git-svn is completely silent about this.
>

What I do usually is that I look in git log until I see a git-svn-id line: git-svn-id: https://svn.foo.com/svn/project/branches/bar@<rev-SVN> <Repository UUID> AFAIK git-svn dcommit will commit in the branch specified in the last git-svn-id. I also dcommitted in the wrong branch after a rebase because I imported commits from another branch and the topmost commit in git-log was "pointing to" a different branch.

I hope this helps.
Cheers,
-- 
Benoit Sigoure aka Tsuna
EPITA Research and Development Laboratory
Previous: David KastrupNext: David Kastrup
Message 2 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.