Mercurial > hg
diff mercurial/help/revsets.txt @ 11944:df52ff0980fe
revset: predicate to avoid lookup errors
A query like
head() and (descendants("bad") and not descendants("fix"))
(testing if repo heads are affected by a bug) will abort with a
RepoLookupError if either badrev or fixrev aren't found inside
the repository, which is not very informative.
The new predicate returns an empty set for lookup errors, so
head() and (descendants(present("bad")) and not descendants(present("fix")))
will behave as wanted even if those revisions are not found.
author | Wagner Bruna <wbruna@softwareexpress.com.br> |
---|---|
date | Fri, 13 Aug 2010 13:11:41 -0300 |
parents | ba65d61f3158 |
children | 78a97859b90d |
line wrap: on
line diff
--- a/mercurial/help/revsets.txt Fri Aug 13 13:16:34 2010 -0400 +++ b/mercurial/help/revsets.txt Fri Aug 13 13:11:41 2010 -0300 @@ -122,6 +122,10 @@ ``parents(set)`` The set of all parents for all changesets in set. +``present(set)`` + An empty set, if any revision in set isn't found; otherwise, + all revisions in set. + ``removes(pattern)`` Changesets which remove files matching pattern.