mercurial/commands.py
branchstable
changeset 50087 4fc6b423fa97
parent 49830 bc59c1e5dd01
child 50090 a3c856e2ea2f
equal deleted inserted replaced
50078:983e2db18d67 50087:4fc6b423fa97
  7470                         b'(use -f to force)'
  7470                         b'(use -f to force)'
  7471                     )
  7471                     )
  7472                 )
  7472                 )
  7473         node = logcmdutil.revsingle(repo, rev_).node()
  7473         node = logcmdutil.revsingle(repo, rev_).node()
  7474 
  7474 
       
  7475         if node is None:
       
  7476             raise error.InputError(_(b"cannot tag working directory"))
       
  7477 
  7475         if not message:
  7478         if not message:
  7476             # we don't translate commit messages
  7479             # we don't translate commit messages
  7477             message = b'Added tag %s for changeset %s' % (
  7480             message = b'Added tag %s for changeset %s' % (
  7478                 b', '.join(names),
  7481                 b', '.join(names),
  7479                 short(node),
  7482                 short(node),