mercurial/commands.py
changeset 3401 a004164dbeef
parent 3385 55476ce8e59c
child 3402 372999405787
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