Mercurial > hg > mercurial-crew-with-dirclash
comparison 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 |
comparison
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")) |