Mercurial > hg-stable
comparison tests/test-record.t @ 27460:11286ac374f3
fileset: use decorator to mark a function as fileset predicate
Using decorator can localize changes for adding (or removing) a
fileset predicate function in source code.
It is also useful to pick predicates up for specific purpose. For
example, subsequent patches marks predicates as "call status" or "use
existing" via decorator.
To avoid (1) redundancy between "predicate name" and (the beginning
of) help document, and (2) accidental typo of help document, this
patch also makes decorator put predicate declration into the beginning
of help.
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Mon, 21 Dec 2015 22:31:16 +0900 |
parents | 9bc11716bc86 |
children | 58f8b29c37ff |
comparison
equal
deleted
inserted
replaced
27459:2f15253e415f | 27460:11286ac374f3 |
---|