Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 18075:2c1fc483efa4
commands: 'hg bookmark NAME' should work even with ui.strict=True
Before this patch, enabling strict command processing (ui.strict=True)
meant that 'hg bookmark NAME', as referenced several places in the
documentation, would not work. This adds 'bookmark' as an explicit alias
to 'bookmarks'.
author | Kevin Bullock <kbullock@ringworld.org> |
---|---|
date | Sun, 16 Dec 2012 22:00:38 -0600 |
parents | 4bec77e62c00 |
children | 7f5a0eba3768 |
comparison
equal
deleted
inserted
replaced
18074:8c9a52492d42 | 18075:2c1fc483efa4 |
---|---|
756 hbisect.save_state(repo, state) | 756 hbisect.save_state(repo, state) |
757 if not noupdate: | 757 if not noupdate: |
758 cmdutil.bailifchanged(repo) | 758 cmdutil.bailifchanged(repo) |
759 return hg.clean(repo, node) | 759 return hg.clean(repo, node) |
760 | 760 |
761 @command('bookmarks', | 761 @command('bookmarks|bookmark', |
762 [('f', 'force', False, _('force')), | 762 [('f', 'force', False, _('force')), |
763 ('r', 'rev', '', _('revision'), _('REV')), | 763 ('r', 'rev', '', _('revision'), _('REV')), |
764 ('d', 'delete', False, _('delete a given bookmark')), | 764 ('d', 'delete', False, _('delete a given bookmark')), |
765 ('m', 'rename', '', _('rename a given bookmark'), _('NAME')), | 765 ('m', 'rename', '', _('rename a given bookmark'), _('NAME')), |
766 ('i', 'inactive', False, _('mark a bookmark inactive'))], | 766 ('i', 'inactive', False, _('mark a bookmark inactive'))], |