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

1. Overview

The strip extension provides the strip command to remove changesets and their descendants from the repository.

2. Configuration

Enable the extension by adding the following lines to your .hgrc or Mercurial.ini:

[extensions]
strip =

3. Usage

To remove a changeset and its descendants from the repository:

hg strip <REV>

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 strip for more details.


CategoryBundledExtension

StripExtension (last edited 2013-11-19 16:22:29 by SiddharthAgarwal)