Mercurial > hg
diff mercurial/registrar.py @ 38863:61ab546b71c3
fileset: introduce weight constants for readability
These constants are defined in the filesetlang module since it's the
bottommost module depending on WEIGHT_CHECK_FILENAME, and extensions
will be likely to import it to process function arguments.
Credit for the naming goes to Augie Fackler.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 04 Aug 2018 17:08:33 +0900 |
parents | bfd5def3fe02 |
children | 382b055cc358 |
line wrap: on
line diff
--- a/mercurial/registrar.py Sat Aug 04 17:17:31 2018 +0900 +++ b/mercurial/registrar.py Sat Aug 04 17:08:33 2018 +0900 @@ -249,6 +249,7 @@ Optional argument 'weight' indicates the estimated run-time cost, useful for static optimization, default is 1. Higher weight means more expensive. + There are predefined weights in the 'filesetlang' module. ====== ============================================================= Weight Description and examples