mercurial/commands.py
changeset 1523 fdda77dcf601
parent 1522 d07d729ce306
child 1525 c85e5bbfd141
equal deleted inserted replaced
1522:d07d729ce306 1523:fdda77dcf601
   547 	return datestr
   547 	return datestr
   548 
   548 
   549     if not pats:
   549     if not pats:
   550         raise util.Abort(_('at least one file name or pattern required'))
   550         raise util.Abort(_('at least one file name or pattern required'))
   551 
   551 
   552     opmap = [['user', getname], ['number', str], ['changeset', getnode], ['date', getdate]]
   552     opmap = [['user', getname], ['number', str], ['changeset', getnode],
       
   553              ['date', getdate]]
   553     if not opts['user'] and not opts['changeset'] and not opts['date']:
   554     if not opts['user'] and not opts['changeset'] and not opts['date']:
   554         opts['number'] = 1
   555         opts['number'] = 1
   555 
   556 
   556     if opts['rev']:
   557     if opts['rev']:
   557         node = repo.changelog.lookup(opts['rev'])
   558         node = repo.changelog.lookup(opts['rev'])