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

git-cvsimport: creating bogus branches (was: really convert underscores in branch names to dots with -u)

From
Andreas Fuchs <asf@boinkor.net>
Date
Mar 11, 2008, 15:56 UTC
Message-ID
<loom.20080311T153924-977@post.gmane.org>
In-Reply-To
<20071103115502.14532.qmail@d121e5a37ec172.315fe32.mid.smarden.org>
Gerrit Pape <pape <at> smarden.org> writes:
> The documentation states for the -u option that underscores in tag and
> branch names are converted to dots, but this was actually implemented
> for the tag names only.

This causes a lot of problems for me with a tree that was using -u before this change: Now there are two git branches for each CVS branch: one with and one without underscores.

That's not so bad, but git-cvsimport seems to mess up the ancestry graph by using the current master's HEAD revision as the parent of each of these new branches. (I haven't debugged this completely, but what I see strongly suggests that this is what's happening.)

If you want to take a look at the mangled branches, its gitweb is at <http://git.boinkor.net/gitweb/sbcl-beta.git>. See for an example: <http://git.boinkor.net/gitweb/sbcl-beta.git?a=shortlog;h=refs/heads/alpha64.2.branch>. That's commit from 2003 having a parent commit from 2008. Right after that parent commit in 2008 was when I started using the new git-cvsimport.

Note that I'm not strongly to rewriting underscores in branch names as documented, but the way things are now, I'd have preferred the transition happening in a backwards-compatible way (-:

Cheers, Andreas.

Previous: Gerrit Pape
Message 2 of 2 in “git-cvsimport: really convert underscores in branch names to dots with -u”
  1. git-cvsimport: really convert underscores in branch names to dots with -uGerrit Pape, Nov 3, 2007
  2. git-cvsimport: creating bogus branches (was: really convert underscores in branch names to dots with -u)Andreas Fuchs, Mar 11, 2008

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.