2899 ('', 'nobackup', None, _('no backups (DEPRECATED)')), |
2899 ('', 'nobackup', None, _('no backups (DEPRECATED)')), |
2900 ('n', '', None, _('ignored (DEPRECATED)')), |
2900 ('n', '', None, _('ignored (DEPRECATED)')), |
2901 ('k', 'keep', None, _("do not modify working copy during strip")), |
2901 ('k', 'keep', None, _("do not modify working copy during strip")), |
2902 ('B', 'bookmark', '', _("remove revs only reachable from given" |
2902 ('B', 'bookmark', '', _("remove revs only reachable from given" |
2903 " bookmark"))], |
2903 " bookmark"))], |
2904 _('hg strip [-k] [-f] [-n] [-B bookmark] REV...')) |
2904 _('hg strip [-k] [-f] [-n] [-B bookmark] [-r] REV...')) |
2905 def strip(ui, repo, *revs, **opts): |
2905 def strip(ui, repo, *revs, **opts): |
2906 """strip changesets and all their descendants from the repository |
2906 """strip changesets and all their descendants from the repository |
2907 |
2907 |
2908 The strip command removes the specified changesets and all their |
2908 The strip command removes the specified changesets and all their |
2909 descendants. If the working directory has uncommitted changes, the |
2909 descendants. If the working directory has uncommitted changes, the |