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

Re: parsecvs and unnamed branches

From
Keith Packard <keithp@keithp.com>
Date
Jun 16, 2006, 22:19 UTC
Message-ID
<1150496362.6983.34.camel@neko.keithp.com>
In-Reply-To
<9e4733910606161444i2f996096sbd1f9b3f3ff3a32d@mail.gmail.com>
On Fri, 2006-06-16 at 17:44 -0400, Jon Smirl wrote:
Show 6 quoted lines
> I'm getting thousands of messages about unnamed branches and even
> 'unnamed branch from master-UNNAMED-BRANCH'.
> 
> How do you get unnamed branches into CVS, are these check-in errors or
> are people actually working on unnamed branches? Or is parsecvs not
> finding all of the branch info?

branch names rely on a special 'branch tag' in the "symbols" section of the CVS file, but actual branches are flagged directly in the revision list. I don't know how it happens, but ,v files often end up with branches in the revision tree which haven't an associated tag. Go figure.

For example, in the top level mozilla/Makefile.in,v file, you'll see a branch from version 1.36 with an initial commit 1.36.2.1. Using the wacky CVS branch revision numbering scheme, there should be an associated tag for version 1.36.0.2 (yes, the last two digits are flipped). But, none is present in the file.

The reverse situation also occurs, with tags for branches that have no revisions in the file. This case makes sense -- until you make a change in a file along a branch, there will be no other record in the file of where the branch came from.

I'd love to figure out a better mechanism for merging these nameless branches into the resulting repository, but I don't know how to correlate unnamed branches in one file with unnamed branches in other files.

The current scheme of making up a fixed name and hoping that there aren't multiple unmamed branches from the same root is probably fraught with peril.

-- 
keith.packard@intel.com
Previous: Jon SmirlNext: Jon Smirl
Message 2 of 14 in “parsecvs and unnamed branches”
  1. Jon SmirlJun 16, 2006
  2. Keith PackardJun 16, 2006
  3. Jon SmirlJun 16, 2006
  4. Jon SmirlJun 16, 2006
  5. Keith PackardJun 16, 2006
  6. Jon SmirlJun 17, 2006
  7. Pavel RoskinJun 17, 2006
  8. Jon SmirlJun 17, 2006
  9. Pavel RoskinJun 17, 2006
  10. Jon SmirlJun 17, 2006
  11. Pavel RoskinJun 17, 2006
  12. Keith PackardJun 17, 2006
  13. Jon SmirlJun 17, 2006
  14. Keith PackardJun 17, 2006

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.