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

Re: [RFC] Make dot-counting ignore ".1" at the end

From
DMDavid Mansfield <centos@dm.cobite.com>
Date
Mar 24, 2006, 14:40 UTC
Message-ID
<442404F0.80609@dm.cobite.com>
In-Reply-To
<Pine.LNX.4.64.0603221746300.26286@g5.osdl.org>
Linus Torvalds wrote:
> I'm not 100% sure this is appropriate, but in general, I think "<rev>" and 
> "<rev>.1" should be considered the same thing, no? Which implies that 
> "1.1" and "1.1.1.1" are all the same thing, and collapse to just "1", ie a 
> zero dot-count. They are all the same version, after all, no?

Hmmm. I'm not sure about this. Given x.y.z.q... the 'odd' nodes (starting from x = position 1) represent branches, not revisions, and don't refer to actual concrete objects (just tags if you will) in the cvs world.

So if <rev> is something like x.y then x.y.z would refer to the 'z' branch.

Furthermore, 'z' better be an even value 2 4 6 etc. because those are the only branch id's cvs will create. The odd values are for 'imported source' branches.

The reason 1.1.1.1 exists is some lame-ass crap that CVS delivers to any developer who imports his/her initial source code.

It creates 1.1 as a placeholder, and I think in this special case it has the same contents. It also creates a .1 'import branch' then puts the imported revision onto that 'import' branch.

In a normal situation, you have rev = x.y

You branch, it 'registers' a branch x.y.z where z in {2,4,6...} (and uses a special 'magic branch' syntax x.y.0.z in the symbolic tags section).

Only when you commit your first change does it create x.y.z.1.
So we have:
x.y != x.y.z.1 for sure, in the general case.

Also x.y.z will never be x.y.1 for a user created branch because z must be even number (except for import branches), in any case x.y.z is never an actual file revision. Now, it COULD be the fact there there needs to be special handling for x.y.z where z == 1 because that is an import branch and something devilish is happening there.

I honestly don't know...
David
Previous: Keith PackardNext: David Mansfield
Message 6 of 11 in “Fix branch ancestry calculation”
  1. Linus TorvaldsMar 23, 2006
  2. [RFC] Make dot-counting ignore ".1" at the endLinus Torvalds, Mar 23, 2006
  3. Keith PackardMar 23, 2006
  4. Linus TorvaldsMar 23, 2006
  5. Keith PackardMar 23, 2006
  6. David MansfieldMar 24, 2006
  7. David MansfieldMar 24, 2006
  8. Linus TorvaldsMar 24, 2006
  9. Keith PackardMar 24, 2006
  10. Chris ShoemakerMar 25, 2006
  11. Keith PackardMar 25, 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.