mercurial/commands.py
changeset 22009 0bbe8ef901d1
parent 22008 b02ab548ab5c
child 22010 41e969cb9468
equal deleted inserted replaced
22008:b02ab548ab5c 22009:0bbe8ef901d1
  5797 
  5797 
  5798         date = opts.get('date')
  5798         date = opts.get('date')
  5799         if date:
  5799         if date:
  5800             date = util.parsedate(date)
  5800             date = util.parsedate(date)
  5801 
  5801 
  5802         editor = cmdutil.getcommiteditor(**opts)
  5802         if opts.get('remove'):
       
  5803             editform = 'tag.remove'
       
  5804         else:
       
  5805             editform = 'tag.add'
       
  5806         editor = cmdutil.getcommiteditor(editform=editform, **opts)
  5803 
  5807 
  5804         # don't allow tagging the null rev
  5808         # don't allow tagging the null rev
  5805         if (not opts.get('remove') and
  5809         if (not opts.get('remove') and
  5806             scmutil.revsingle(repo, rev_).rev() == nullrev):
  5810             scmutil.revsingle(repo, rev_).rev() == nullrev):
  5807             raise util.Abort(_("cannot tag null revision"))
  5811             raise util.Abort(_("cannot tag null revision"))