mercurial/commands.py
changeset 3801 bd7011246fab
parent 3786 8d603f8567ae
child 3802 a0d0d24c4e71
equal deleted inserted replaced
3794:630caaf29815 3801:bd7011246fab
  2187     they are stored as a file named ".hgtags" which is managed
  2187     they are stored as a file named ".hgtags" which is managed
  2188     similarly to other project files and can be hand-edited if
  2188     similarly to other project files and can be hand-edited if
  2189     necessary.  The file '.hg/localtags' is used for local tags (not
  2189     necessary.  The file '.hg/localtags' is used for local tags (not
  2190     shared among repositories).
  2190     shared among repositories).
  2191     """
  2191     """
  2192     if name in ['tip', '.']:
  2192     if name in ['tip', '.', 'null']:
  2193         raise util.Abort(_("the name '%s' is reserved") % name)
  2193         raise util.Abort(_("the name '%s' is reserved") % name)
  2194     if rev_ is not None:
  2194     if rev_ is not None:
  2195         ui.warn(_("use of 'hg tag NAME [REV]' is deprecated, "
  2195         ui.warn(_("use of 'hg tag NAME [REV]' is deprecated, "
  2196                   "please use 'hg tag [-r REV] NAME' instead\n"))
  2196                   "please use 'hg tag [-r REV] NAME' instead\n"))
  2197         if opts['rev']:
  2197         if opts['rev']: