Mercurial > hg > mercurial-crew-with-dirclash
diff mercurial/commands.py @ 2784:e3564699409c
Add '.' as a shortcut revision name for the working directory parent.
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Fri, 04 Aug 2006 14:36:03 -0700 |
parents | 12a7bfcafd8f |
children | bd8a9a94139f |
line wrap: on
line diff
--- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -2789,8 +2789,8 @@ def tag(ui, repo, name, rev_=None, **opt necessary. The file '.hg/localtags' is used for local tags (not shared among repositories). """ - if name == "tip": - raise util.Abort(_("the name 'tip' is reserved")) + if name in ['tip', '.']: + raise util.Abort(_("the name '%s' is reserved") % name) if rev_ is not None: ui.warn(_("use of 'hg tag NAME [REV]' is deprecated, " "please use 'hg tag [-r REV] NAME' instead\n"))