mercurial/commands.py
changeset 2642 f47432ae5376
parent 2641 46182568b4ce
child 2656 e57df017640d
equal deleted inserted replaced
2641:46182568b4ce 2642:f47432ae5376
  2673     else:
  2673     else:
  2674         p1, p2 = repo.dirstate.parents()
  2674         p1, p2 = repo.dirstate.parents()
  2675         if p1 == nullid:
  2675         if p1 == nullid:
  2676             raise util.Abort(_('no revision to tag'))
  2676             raise util.Abort(_('no revision to tag'))
  2677         if p2 != nullid:
  2677         if p2 != nullid:
  2678             raise util.Abort(_('outstanding uncommited merges'))
  2678             raise util.Abort(_('outstanding uncommitted merges'))
  2679         r = hex(p1)
  2679         r = hex(p1)
  2680 
  2680 
  2681     repo.tag(name, r, opts['local'], opts['message'], opts['user'],
  2681     repo.tag(name, r, opts['local'], opts['message'], opts['user'],
  2682              opts['date'])
  2682              opts['date'])
  2683 
  2683