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

Re: I just pulled and built 'next'...

From
Theodore Tso <tytso@mit.edu>
Date
Jan 8, 2007, 21:00 UTC
Message-ID
<20070108210002.GA15121@thunk.org>
In-Reply-To
<7vvejhwa6g.fsf@assigned-by-dhcp.cox.net>
On Mon, Jan 08, 2007 at 12:11:35PM -0800, Junio C Hamano wrote:
> One question is how you would sort the result.  If you sort them
> by taggerdate, you would get v1.4.4.4 anyway ;-).

I was assuming either lexigraphically, or via some really complicated rpm/dpkg version number comparison scheme. :-)

Show 10 quoted lines
> If we go with topology, we do not necessarily have to find all
> the tags.  When we hit a commit that is tagged, we can stop the
> traversal (so after finding v1.5.0-rc0, we do not have to go
> back along the 'master' lineage to find v1.4.4 tag).  Traversing
> from the tip of 'master' (or 'next') this way we will notice
> that v1.5.0-rc0 and v1.4.4.4 are the candidates without going
> any further in the past.
> 
> But the question still remains which one between the two to
> pick.

Yeah, that is the question. If we're willing to look at the tag name, it's pretty clear that if both v1.5.0-rc0 and v1.4.4.4 is reachable from the head, it should be based on the "newer" version, i.e., v1.5.0-rc0. A human can figure this out easily, but algorithimically we end up having to use something like the rpm or dpkg version comparison algorithm, both of which are hueristics that will sometimes get thigns wrong.

						- Ted
Previous: Junio C HamanoNext: Shawn O. Pearce
Message 3 of 9 in “I just pulled and built 'next'...”
  1. Theodore Ts'oJan 8, 2007
  2. Junio C HamanoJan 8, 2007
  3. Theodore TsoJan 8, 2007
  4. Shawn O. PearceJan 9, 2007
  5. Andreas EricssonJan 9, 2007
  6. Theodore TsoJan 9, 2007
  7. Uwe Kleine-KönigJan 9, 2007
  8. Shawn O. PearceJan 10, 2007
  9. Uwe Kleine-KoenigJan 10, 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.