comparison 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
comparison
equal deleted inserted replaced
3400:d8eba1c3ce9b 3401:a004164dbeef
626 626
627 if not pats: 627 if not pats:
628 raise util.Abort(_('at least one file name or pattern required')) 628 raise util.Abort(_('at least one file name or pattern required'))
629 629
630 opmap = [['user', lambda x: ui.shortuser(x.user())], 630 opmap = [['user', lambda x: ui.shortuser(x.user())],
631 ['number', lambda x: str(x.rev())], 631 ['number', lambda x: str(x.linkrev())],
632 ['changeset', lambda x: short(x.node())], 632 ['changeset', lambda x: short(x.node())],
633 ['date', getdate], ['follow', lambda x: x.path()]] 633 ['date', getdate], ['follow', lambda x: x.path()]]
634 if (not opts['user'] and not opts['changeset'] and not opts['date'] 634 if (not opts['user'] and not opts['changeset'] and not opts['date']
635 and not opts['follow']): 635 and not opts['follow']):
636 opts['number'] = 1 636 opts['number'] = 1