##// END OF EJS Templates
tests: use sha256line.py instead of /dev/random in test-censor.t (issue6858)...
tests: use sha256line.py instead of /dev/random in test-censor.t (issue6858) Sometimes the systems that run our test suite don't have enough entropy and they cannot produce target file of the expected size using /dev/random, which results in test failures. Switching to /dev/urandom would give us way more available data at the cost of it being less "random", but we don't really need to use entropy for this task at all, since we only care if the file size after compression is big enough to not be stored inline in the revlog. So let's use something that we already have used to generate this kind of data in other tests.

File last commit:

r48442:0caac68a default
r52255:e7be2ddf stable
Show More
purge.py
39 lines | 1.7 KiB | text/x-python | PythonLexer
Emanuele Aina
Move back the purge extension in hgext
r4311 # Copyright (C) 2006 - Marco Barisione <marco@barisione.org>
#
Matt Mackall
urls: bulk-change primary website URLs
r26421 # This is a small extension for Mercurial (https://mercurial-scm.org/)
Emanuele Aina
Move back the purge extension in hgext
r4311 # that removes files not known to mercurial
#
Martin Geisler
purge: wrap docstrings at 70 characters
r9270 # This program was inspired by the "cvspurge" script contained in CVS
# utilities (http://www.red-bean.com/cvsutils/).
Emanuele Aina
Move back the purge extension in hgext
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
Remove FSF mailing address from GPL headers...
r15782 # along with this program; if not, see <http://www.gnu.org/licenses/>.
Emanuele Aina
Move back the purge extension in hgext
r4311
Valentin Gatien-Baron
purge: move extension into core mercurial...
r47080 '''command to delete untracked files from the working directory (DEPRECATED)
Martin Geisler
purge: fix formatting of lists with proper reST markup
r9215
Valentin Gatien-Baron
purge: move extension into core mercurial...
r47080 The functionality of this extension has been included in core Mercurial since
Matt Harbison
doc: wrap the help text for the purge extension...
r48442 version 5.7. Please use :hg:`purge ...` instead. :hg:`purge --confirm` is now
the default, unless the extension is enabled for backward compatibility.
Valentin Gatien-Baron
purge: move extension into core mercurial...
r47080 '''
Gregory Szorc
merge: move purge logic from extension...
r39499
Valentin Gatien-Baron
purge: move extension into core mercurial...
r47080 # This empty extension looks pointless, but core mercurial checks if it's loaded
# to implement the slightly different behavior documented above.
Matt Harbison
purge: restore the `testedwith` declaration...
r48255
# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
# be specifying the version(s) of Mercurial they are tested with, or
# leave the attribute unspecified.
testedwith = b'ships-with-hg-core'