purge.py
32 lines
| 1.4 KiB
| text/x-python
|
PythonLexer
/ hgext / purge.py
Emanuele Aina
|
r4311 | # Copyright (C) 2006 - Marco Barisione <marco@barisione.org> | ||
# | ||||
Matt Mackall
|
r26421 | # This is a small extension for Mercurial (https://mercurial-scm.org/) | ||
Emanuele Aina
|
r4311 | # that removes files not known to mercurial | ||
# | ||||
Martin Geisler
|
r9270 | # This program was inspired by the "cvspurge" script contained in CVS | ||
# utilities (http://www.red-bean.com/cvsutils/). | ||||
Emanuele Aina
|
r4311 | # | ||
# For help on the usage of "hg purge" use: | ||||
# hg help purge | ||||
# | ||||
# This program is free software; you can redistribute it and/or modify | ||||
# it under the terms of the GNU General Public License as published by | ||||
# the Free Software Foundation; either version 2 of the License, or | ||||
# (at your option) any later version. | ||||
# | ||||
# This program is distributed in the hope that it will be useful, | ||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
# GNU General Public License for more details. | ||||
# | ||||
# You should have received a copy of the GNU General Public License | ||||
Martin Geisler
|
r15782 | # along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
Emanuele Aina
|
r4311 | |||
Valentin Gatien-Baron
|
r47080 | '''command to delete untracked files from the working directory (DEPRECATED) | ||
Martin Geisler
|
r9215 | |||
Valentin Gatien-Baron
|
r47080 | The functionality of this extension has been included in core Mercurial since | ||
version 5.7. Please use :hg:`purge ...` instead. :hg:`purge --confirm` is now the default, unless the extension is enabled for backward compatibility. | ||||
''' | ||||
Gregory Szorc
|
r39499 | |||
Valentin Gatien-Baron
|
r47080 | # This empty extension looks pointless, but core mercurial checks if it's loaded | ||
# to implement the slightly different behavior documented above. | ||||