diff mercurial/commands.py @ 3401:a004164dbeef

Make annotate use linkrev instead of rev
author Brendan Cully <brendan@kublai.com>
date Sun, 15 Oct 2006 17:38:07 -0700
parents 55476ce8e59c
children 372999405787
line wrap: on
line diff
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -628,7 +628,7 @@ def annotate(ui, repo, *pats, **opts):
         raise util.Abort(_('at least one file name or pattern required'))
 
     opmap = [['user', lambda x: ui.shortuser(x.user())],
-             ['number', lambda x: str(x.rev())],
+             ['number', lambda x: str(x.linkrev())],
              ['changeset', lambda x: short(x.node())],
              ['date', getdate], ['follow', lambda x: x.path()]]
     if (not opts['user'] and not opts['changeset'] and not opts['date']