[regression] annotate --follow no longer lists file name (was: Find a regression, win a t-shirt!)

Thomas Arendsen Hein thomas at intevation.de
Mon Feb 15 05:39:34 CST 2010


* Matt Mackall <mpm at selenic.com> [20100206 14:12]:
> To encourage more testing during the upcoming code freeze, we're going
> to give away some Mercurial t-shirts!
> 
> The 1.5 code freeze starts Feb 14 and runs through to the 1.5 release
> (around about Mar 1). People who find regressions from 1.4.3 -> 1.5 (and
> label their messages "regression" will be put in a pool from which we'll
> randomly select 5 winners to mail shirts out to.

Hmm, let's try:

$ ~/hg/repos/1.4.3/hg version -q
Mercurial Distributed SCM (version 1.4.3)
$ ~/hg/repos/1.4.3/hg annotate --follow bar
foo: foo

$ hg version -q
Mercurial Distributed SCM (version 1.4.3+147-634b0e7561ec)
$ hg annotate --follow bar
0: foo
$ hg annotate --follow -f bar
foo: foo

The change was introduced in 98a0421b9e52 (commands: annotate
follows by default, separate -f/--file option)

In issue1593 ("hg annotate -f" writes file names instead of line numbers)
mpm writes:
| This is correct and long-standing behavior (just tested with 0.9.5). -f (follow
| copies) is not very meaningful without a way to display what filename was copied.

I did not find any discussion about this change, I guess this was
done on the sprint.

I think --follow automatically should imply --file.

Additionally --follow should print DEPRECATED, or not?

Regards,
Thomas

P.S.: I set "Reply-To: mercurial-devel" to move this thread to the
development list.

-- 
thomas at intevation.de - http://intevation.de/~thomas/ - OpenPGP key: 0x5816791A
Intevation GmbH, Neuer Graben 17, 49074 Osnabrueck - AG Osnabrueck, HR B 18998
Geschaeftsfuehrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20100215/2d3552d8/attachment.pgp>


More information about the Mercurial-devel mailing list