109 ('n', '', None, _('ignored (DEPRECATED)')), |
109 ('n', '', None, _('ignored (DEPRECATED)')), |
110 ('k', 'keep', None, _("do not modify working directory during " |
110 ('k', 'keep', None, _("do not modify working directory during " |
111 "strip")), |
111 "strip")), |
112 ('B', 'bookmark', [], _("remove revs only reachable from given" |
112 ('B', 'bookmark', [], _("remove revs only reachable from given" |
113 " bookmark"))], |
113 " bookmark"))], |
114 _('hg strip [-k] [-f] [-B bookmark] [-r] REV...')) |
114 _('hg strip [-k] [-f] [-B bookmark] [-r] REV...'), |
|
115 helpcategory=command.CATEGORY_MAINTENANCE) |
115 def stripcmd(ui, repo, *revs, **opts): |
116 def stripcmd(ui, repo, *revs, **opts): |
116 """strip changesets and all their descendants from the repository |
117 """strip changesets and all their descendants from the repository |
117 |
118 |
118 The strip command removes the specified changesets and all their |
119 The strip command removes the specified changesets and all their |
119 descendants. If the working directory has uncommitted changes, the |
120 descendants. If the working directory has uncommitted changes, the |