# HG changeset patch # User Brendan Cully # Date 1160959087 25200 # Node ID a004164dbeef3f1e095585f5eea54171a4fb4412 # Parent d8eba1c3ce9ba2491f78ea4668f039e92bf774d9 Make annotate use linkrev instead of rev diff -r d8eba1c3ce9b -r a004164dbeef mercurial/commands.py --- a/mercurial/commands.py Sun Oct 15 17:37:04 2006 -0700 +++ b/mercurial/commands.py Sun Oct 15 17:38:07 2006 -0700 @@ -628,7 +628,7 @@ 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'] diff -r d8eba1c3ce9b -r a004164dbeef mercurial/hgweb/hgweb_mod.py --- a/mercurial/hgweb/hgweb_mod.py Sun Oct 15 17:37:04 2006 -0700 +++ b/mercurial/hgweb/hgweb_mod.py Sun Oct 15 17:38:07 2006 -0700 @@ -385,7 +385,7 @@ yield {"parity": parity, "node": hex(f.node()), - "rev": f.rev(), + "rev": f.linkrev(), "author": name, "file": f.path(), "line": l}