[issue1593] "hg annotate -f" writes file names instead of line numbers

Geoff Bache mercurial-bugs at selenic.com
Fri Apr 3 12:54:02 CDT 2009


New submission from Geoff Bache <geoff.bache at pobox.com>:

"hg annotate" writes line numbers by default. This is what I expect and is what
most VCSes do. 

However, if I give it the -f flag, line numbers are no longer produced by
default. Instead the relative path of the file name is written (which is quite
long in my case).

I can get my line numbers back by specifying "-f -n" but I can't seem to get rid
of the filenames, which are uninteresting to me. They take up a lot of screen
space, they are nearly all the same, and the rename or move of a file is
generally not such a significant effect in its life in my view.

I think "-n" should still be default with "-f", and that the filename output
should be optionally enabled by a separate flag.

This is with Mercurial 1.2.1. If I remember rightly earlier versions didn't
write any annotations at all with annotate -f, essentially producing the output
of "hg cat".

----------
messages: 8981
nosy: gjb1002
priority: bug
status: unread
title: "hg annotate -f" writes file names instead of line numbers

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue1593>
____________________________________________________



More information about the Mercurial-devel mailing list