| 1 |
# Copyright (C) 2006 - Marco Barisione <[email protected]> |
| 2 |
# |
| 3 |
# This is a small extension for Mercurial (https://mercurial-scm.org/) |
| 4 |
# that removes files not known to mercurial |
| 5 |
# |
| 6 |
# This program was inspired by the "cvspurge" script contained in CVS |
| 7 |
# utilities (http://www.red-bean.com/cvsutils/). |
| 8 |
# |
| 9 |
# For help on the usage of "hg purge" use: |
| 10 |
# hg help purge |
| 11 |
# |
| 12 |
# This program is free software; you can redistribute it and/or modify |
| 13 |
# it under the terms of the GNU General Public License as published by |
| 14 |
# the Free Software Foundation; either version 2 of the License, or |
| 15 |
# (at your option) any later version. |
| 16 |
# |
| 17 |
# This program is distributed in the hope that it will be useful, |
| 18 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 19 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 20 |
# GNU General Public License for more details. |
| 21 |
# |
| 22 |
# You should have received a copy of the GNU General Public License |
| 23 |
# along with this program; if not, see <http://www.gnu.org/licenses/>. |
| 24 |
|
| 25 |
'''command to delete untracked files from the working directory (DEPRECATED) |
| 26 |
|
| 27 |
The functionality of this extension has been included in core Mercurial since |
| 28 |
version 5.7. Please use :hg:`purge ...` instead. :hg:`purge --confirm` is now |
| 29 |
the default, unless the extension is enabled for backward compatibility. |
| 30 |
''' |
| 31 |
|
| 32 |
# This empty extension looks pointless, but core mercurial checks if it's loaded |
| 33 |
# to implement the slightly different behavior documented above. |
| 34 |
|
| 35 |
# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for |
| 36 |
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should |
| 37 |
# be specifying the version(s) of Mercurial they are tested with, or |
| 38 |
# leave the attribute unspecified. |
| 39 |
|
| 40 |
from __future__ import annotations |
| 41 |
|
| 42 |
testedwith = b'ships-with-hg-core' |