strip

Contents

strip changesets and their descendants from history (DEPRECATED)

Description

The functionality of this extension has been included in core Mercurial since version 5.7. Please use hg debugstrip ... instead.

This extension allows you to strip changesets and all their descendants from the repository. See the command help for details.

Commands

Repository maintenance

strip

hg strip [-k] [-f] [-B bookmark] [-r] REV...

Options:

-r, --rev <REV[+]>
 strip specified revision (optional, can specify revisions without this option)
-f, --force force removal of changesets, discard uncommitted changes (no backup)
--no-backup do not save backup bundle
--nobackup do not save backup bundle (DEPRECATED)
-n ignored (DEPRECATED)
-k, --keep do not modify working directory during strip
-B, --bookmark <BOOKMARK[+]>
 remove revs only reachable from given bookmark
--soft simply drop changesets from visible history (EXPERIMENTAL)
--permit-empty-revset
 return success even if no revision was stripped

[+] marked option can be specified multiple times