mercurial/commands.py
changeset 18906 ef7068173a22
parent 18892 46c0ca1ef7e1
child 18909 3a72c89a83ec
equal deleted inserted replaced
18905:012780620d4f 18906:ef7068173a22
  5599             message = ui.edit(message, ui.username())
  5599             message = ui.edit(message, ui.username())
  5600 
  5600 
  5601         # don't allow tagging the null rev
  5601         # don't allow tagging the null rev
  5602         if (not opts.get('remove') and
  5602         if (not opts.get('remove') and
  5603             scmutil.revsingle(repo, rev_).rev() == nullrev):
  5603             scmutil.revsingle(repo, rev_).rev() == nullrev):
  5604             raise util.Abort(_("null revision specified"))
  5604             raise util.Abort(_("cannot tag null revision"))
  5605 
  5605 
  5606         repo.tag(names, r, message, opts.get('local'), opts.get('user'), date)
  5606         repo.tag(names, r, message, opts.get('local'), opts.get('user'), date)
  5607     finally:
  5607     finally:
  5608         release(lock, wlock)
  5608         release(lock, wlock)
  5609 
  5609