Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 26190:29d29a82263f
bookmark: improve ambiguous documentation for rename
author | timeless@mozdev.org |
---|---|
date | Fri, 04 Sep 2015 11:30:38 -0400 |
parents | f3b467aca485 |
children | 69da16b366ad |
comparison
equal
deleted
inserted
replaced
26189:663fbc336e22 | 26190:29d29a82263f |
---|---|
873 | 873 |
874 @command('bookmarks|bookmark', | 874 @command('bookmarks|bookmark', |
875 [('f', 'force', False, _('force')), | 875 [('f', 'force', False, _('force')), |
876 ('r', 'rev', '', _('revision'), _('REV')), | 876 ('r', 'rev', '', _('revision'), _('REV')), |
877 ('d', 'delete', False, _('delete a given bookmark')), | 877 ('d', 'delete', False, _('delete a given bookmark')), |
878 ('m', 'rename', '', _('rename a given bookmark'), _('NAME')), | 878 ('m', 'rename', '', _('rename a given bookmark'), _('OLD')), |
879 ('i', 'inactive', False, _('mark a bookmark inactive')), | 879 ('i', 'inactive', False, _('mark a bookmark inactive')), |
880 ] + formatteropts, | 880 ] + formatteropts, |
881 _('hg bookmarks [OPTIONS]... [NAME]...')) | 881 _('hg bookmarks [OPTIONS]... [NAME]...')) |
882 def bookmark(ui, repo, *names, **opts): | 882 def bookmark(ui, repo, *names, **opts): |
883 '''create a new bookmark or list existing bookmarks | 883 '''create a new bookmark or list existing bookmarks |
913 hg book -i reviewed | 913 hg book -i reviewed |
914 | 914 |
915 - create an inactive bookmark on another changeset:: | 915 - create an inactive bookmark on another changeset:: |
916 | 916 |
917 hg book -r .^ tested | 917 hg book -r .^ tested |
918 | |
919 - rename bookmark turkey to dinner:: | |
920 | |
921 hg book -m turkey dinner | |
918 | 922 |
919 - move the '@' bookmark from another branch:: | 923 - move the '@' bookmark from another branch:: |
920 | 924 |
921 hg book -f @ | 925 hg book -f @ |
922 ''' | 926 ''' |