mercurial/commands.py
changeset 27899 78b9fdb844c1
parent 27898 2cc44efcb7cf
child 27911 645e78845383
equal deleted inserted replaced
27898:2cc44efcb7cf 27899:78b9fdb844c1
  3887     '''
  3887     '''
  3888     with repo.wlock():
  3888     with repo.wlock():
  3889         return _dograft(ui, repo, *revs, **opts)
  3889         return _dograft(ui, repo, *revs, **opts)
  3890 
  3890 
  3891 def _dograft(ui, repo, *revs, **opts):
  3891 def _dograft(ui, repo, *revs, **opts):
       
  3892     if revs and opts['rev']:
       
  3893         ui.warn(_('warning: inconsistent use of --rev might give unexpected '
       
  3894                   'revision ordering!\n'))
       
  3895 
  3892     revs = list(revs)
  3896     revs = list(revs)
  3893     revs.extend(opts['rev'])
  3897     revs.extend(opts['rev'])
  3894 
  3898 
  3895     if not opts.get('user') and opts.get('currentuser'):
  3899     if not opts.get('user') and opts.get('currentuser'):
  3896         opts['user'] = ui.username()
  3900         opts['user'] = ui.username()