Differences between revisions 6 and 7
Revision 6 as of 2007-02-09 09:36:01
Size: 872
Comment: purge extension is in contrib
Revision 7 as of 2007-10-12 08:45:04
Size: 873
Editor: chn-static-130-160-16-61
Comment: Fixed typo
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
This extension purges all files an directories not being tracked by Mercurial in the current repository. This extension purges all files and directories not being tracked by Mercurial in the current repository.

Purge extension

This extension is being distributed along with Mercurial.

Author: Marco Barisione

Overview

This extension purges all files and directories not being tracked by Mercurial in the current repository.

It'll remove unknown and ignored files, as well as empty directories.

It keeps added files and (unmodified or modified) tracked files.

Configuration

Just add a new entry in the extensions section of the mercurial configuration file (hgrc):

[extensions]
#hgext.purge=
#or, if purge.py not in the hgext dir (currently in contrib):
purge=/path/to/purge.py

Usage

To purge the repository contents:

hg purge

To list the files that would be removed by running the previous command use it with the --print option:

hg purge --print


CategoryExtension

PurgeExtension (last edited 2014-03-18 16:45:50 by PhilipJagielski)