Mercurial > public > mercurial-scm > hg-stable
diff mercurial/help/filesets.txt @ 31203:4140d49d2efb
fileset: add revs(revs, fileset) to evaluate set in working directory
Unlike other functions, "revs()" does not select files but switches the
evaluation context. This allow to match file with property in another revision
that the one currently evaluated.
This changeset is based on work from Yuya Nishihara.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Fri, 03 Mar 2017 12:44:56 +0100 |
parents | b8a188a6f191 |
children | f8df87018ae9 |
line wrap: on
line diff
--- a/mercurial/help/filesets.txt Sat Jan 24 19:41:56 2015 +0900 +++ b/mercurial/help/filesets.txt Fri Mar 03 12:44:56 2017 +0100 @@ -69,6 +69,10 @@ hg revert "set:copied() and binary() and size('>1M')" +- Revert files that were added to the working directory:: + + hg revert "set:wdir(added())" + - Remove files listed in foo.lst that contain the letter a or b:: hg remove "set: 'listfile:foo.lst' and (**a* or **b*)"