Differences between revisions 5 and 11 (spanning 6 versions)
Revision 5 as of 2007-02-08 19:18:15
Size: 899
Editor: www-gw4
Comment:
Revision 11 as of 2009-05-19 19:30:59
Size: 914
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
'''This extension is currently being distributed along with Mercurial.''' 0.9.3, and tip seems not to contain it? '''This extension is currently being distributed along with Mercurial.'''
Line 9: Line 9:
It'll remove unknown and ignored files, as well as empty directories. It'll remove unknown files and empty directories by default. With the {{{--all}}} option, it will also remove ignored files.

Purge extension

This extension is currently being distributed along with Mercurial.

Author: Marco Barisione

Overview

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

It'll remove unknown files and empty directories by default. With the --all option, it will also remove ignored files.

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/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 2024-06-24 12:29:29 by AntonShestakov)