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

Re: git-svn branches with revision id's in name

From
JBJehan Bing <jehan@orb.com>
Date
Feb 2, 2012, 19:03 UTC
Message-ID
<4F2ADDF9.9090507@orb.com>
In-Reply-To
<4F2A807B.9050206@T-Online.de>
On 2012-02-02 04:24, Carsten Fuchs wrote:
Show 23 quoted lines
> Hi all,
>
> Am 2012-01-30 20:42, schrieb Stephen Duncan Jr:
>> [...]
>> $ git branch -a
>> * master
>> remotes/develop
>> remotes/develop@29271
>> remotes/develop@32463
>> remotes/develop@34103
>> remotes/feature/xyz
>> remotes/feature/xyz@26438
>> remotes/feature/xyz@27542
>> remotes/feature/xyz@35233
>>
>> Why have these remote branches been created? What impact does this
>> have on my checkout? Can I remove safely remove them? How? I was
>> unable to figure out how to reference this behavior in order to search
>> for information on it.
>
> Same questions here.
> (I know how to remove them, but I'd love to learn and understand why
> they have been created.)

Those are branches that have been deleted and then recreated later. In svn, you can always get a deleted branch back by checking out an old revision. But in git, branches are not part of the history, so when you delete a branch, it's completely gone, as if it never existed, taking with it any commit that has not been merged elsewhere. To prevent that loss, git-svn doesn't delete branches. But if the branch was re-created later in svn, you would get a conflict in git. So instead, git-svn rename the old branch by adding the revision number where the branch last existed, i.e. the revision before it was deleted.

So in the OP case, the branch "develop" was deleted at least 3 times, at r34104, r32464 and r29272. The last one may also have been deleted too but then it was not re-created so git-svn didn't rename yet.

Previous: Carsten Fuchs
Message 3 of 3 in “git-svn branches with revision id's in name”
  1. Stephen Duncan JrJan 30, 2012
  2. Carsten FuchsFeb 2, 2012
  3. Jehan BingFeb 2, 2012

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.