From: "Shawn O. Pearce" <spearce@spearce.org>
To: "Uwe Kleine-König" <zeisberg@informatik.uni-freiburg.de>
Cc: Theodore Tso <tytso@mit.edu>, Junio C Hamano <junkio@cox.net>,
git@vger.kernel.org
Subject: Re: I just pulled and built 'next'...
Date: Tue, 9 Jan 2007 19:06:00 -0500 [thread overview]
Message-ID: <20070110000600.GE30023@spearce.org> (raw)
In-Reply-To: <20070109173501.GA3732@cepheus>
Uwe Kleine-K?nig <zeisberg@informatik.uni-freiburg.de> wrote:
> Shawn O. Pearce wrote:
> > $ git rev-list v1.5.0-rc0..next | wc -l
> > 687
> > $ git rev-list v1.4.4.4..next | wc -l
> > 1051
> >
> > So what about doing Junio's suggestion of going by topology and
> > coming up with the possible set of tags (v1.5.0-rc0 and v1.4.4.4
> > right now), and if more than one is found compute the number of
> > commits between each tag and the requested revision, and take the
> > tag that has a smallest number of commits?
>
> One scenario where this will fail is when a bugfix is commited on top of
> v1.4.4.4 and then is merged into v1.5.0-rc0+gabcdef.
Actually it still works, and does what you want. The scenario you
are describing is exactly the one that caused this bug to appear,
and is the one my suggestion is trying to offer a partly sane
solution to.
Try it. Checkout v1.4.4.4, make a trivial commit, merge it to
master, then merge that to next. You'll still come up with the fact
that master (or next) have less commits different from v1.5.0-rc0
than they have from your hypothetical v1.4.4.5. In this case the
the v1.5.0-rc0 tag should still be taken.
Its easy to explain this difference in terms of what the user
sees via `git log` and `git rev-list`. We're taking the tag which
has the fewest commits different. This will hold even if `next`
suddenly gets another 800 new commits (changing the above counts
to 1847 and 1851 respectively).
Where it might fail is if v1.4.4.5 suddenly gets another 1000 commits
as part of its bug fix release and those all get merged into next.
Now v1.4.4.5 is closer than v1.5.0-rc0. But you know what, that
does still make a lot of sense. If you look at the git log (or
git shortlog) between v1.4.4.5 and next there's less output than
if you look at it between v1.5.0-rc0 and next.
--
Shawn.
next prev parent reply other threads:[~2007-01-10 0:06 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-08 13:32 I just pulled and built 'next' Theodore Ts'o
2007-01-08 20:11 ` Junio C Hamano
2007-01-08 21:00 ` Theodore Tso
2007-01-09 3:21 ` Shawn O. Pearce
2007-01-09 9:39 ` Andreas Ericsson
2007-01-09 13:54 ` Theodore Tso
2007-01-09 17:35 ` Uwe Kleine-König
2007-01-10 0:06 ` Shawn O. Pearce [this message]
2007-01-10 13:24 ` Uwe Kleine-Koenig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070110000600.GE30023@spearce.org \
--to=spearce@spearce.org \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
--cc=tytso@mit.edu \
--cc=zeisberg@informatik.uni-freiburg.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.