#pragma section-numbers 2 = Strip Extension = '''This extension is distributed with Mercurial 2.8 and later.''' For Mercurial versions older than 2.8, you can get the same functionality by enabling the MqExtension. ''Authors: Chris Mason, Pierre-Yves David'' <> == Overview == The strip extension provides the `strip` command to remove changesets and their descendants from the repository. == Configuration == Enable the extension by adding the following lines to your `.hgrc` or `Mercurial.ini`: {{{ [extensions] strip = }}} == Usage == To remove a changeset and its descendants from the repository: {{{ hg strip }}} To remove the working directory's parent from the repository, but keep the changes from that changeset in the working directory: {{{ hg strip --keep . }}} Strip is not a history-rewriting operation and can be used on public changesets. See [[Cmd:strip | strip]] for more details. ---- CategoryBundledExtension