mercurial/commands.py
changeset 2784 e3564699409c
parent 2779 12a7bfcafd8f
child 2794 bd8a9a94139f
equal deleted inserted replaced
2783:6b27a7125b67 2784:e3564699409c
  2787     they are stored as a file named ".hgtags" which is managed
  2787     they are stored as a file named ".hgtags" which is managed
  2788     similarly to other project files and can be hand-edited if
  2788     similarly to other project files and can be hand-edited if
  2789     necessary.  The file '.hg/localtags' is used for local tags (not
  2789     necessary.  The file '.hg/localtags' is used for local tags (not
  2790     shared among repositories).
  2790     shared among repositories).
  2791     """
  2791     """
  2792     if name == "tip":
  2792     if name in ['tip', '.']:
  2793         raise util.Abort(_("the name 'tip' is reserved"))
  2793         raise util.Abort(_("the name '%s' is reserved") % name)
  2794     if rev_ is not None:
  2794     if rev_ is not None:
  2795         ui.warn(_("use of 'hg tag NAME [REV]' is deprecated, "
  2795         ui.warn(_("use of 'hg tag NAME [REV]' is deprecated, "
  2796                   "please use 'hg tag [-r REV] NAME' instead\n"))
  2796                   "please use 'hg tag [-r REV] NAME' instead\n"))
  2797         if opts['rev']:
  2797         if opts['rev']:
  2798             raise util.Abort(_("use only one form to specify the revision"))
  2798             raise util.Abort(_("use only one form to specify the revision"))