⇤ ← Revision 1 as of 2007-01-17 20:56:46
Size: 801
Comment: Add purge extension page
|
Size: 828
Comment: Add category extension
|
Deletions are marked like this. | Additions are marked like this. |
Line 31: | Line 31: |
---- CategoryExtension |
Purge extension
This extension is currently being distributed along with Mercurial.
Overview
This extension purges all files an 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: #purge=/path/to/churn.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