mercurial/commands.py
changeset 1665 3a56574f329a
parent 1661 b11507d6d16d
child 1710 c65113f3627a
equal deleted inserted replaced
1664:4338e33c973b 1665:3a56574f329a
  2090     """
  2090     """
  2091     if name == "tip":
  2091     if name == "tip":
  2092         raise util.Abort(_("the name 'tip' is reserved"))
  2092         raise util.Abort(_("the name 'tip' is reserved"))
  2093     if rev_ is not None:
  2093     if rev_ is not None:
  2094         ui.warn(_("use of 'hg tag NAME [REV]' is deprecated, "
  2094         ui.warn(_("use of 'hg tag NAME [REV]' is deprecated, "
  2095                   "please use 'hg tag [-r REV] NAME instead\n"))
  2095                   "please use 'hg tag [-r REV] NAME' instead\n"))
  2096         if opts['rev']:
  2096         if opts['rev']:
  2097             raise util.Abort(_("use only one form to specify the revision"))
  2097             raise util.Abort(_("use only one form to specify the revision"))
  2098     if opts['rev']:
  2098     if opts['rev']:
  2099         rev_ = opts['rev']
  2099         rev_ = opts['rev']
  2100     if rev_:
  2100     if rev_: