[PATCH 1 of 3 STABLE V2] doc: add detail explanation for 'present()' predicate of revsets

FUJIWARA Katsunori foozy at lares.dti.ne.jp
Wed May 16 03:05:00 CDT 2012


# HG changeset patch
# User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
# Date 1337155350 -32400
# Branch stable
# Node ID 85fdd6cf1e68b7a65a93c80858a5d2d73f1ba6d5
# Parent  7002bb17cc5eceb8c1ab792bdaf10bd96c08c8d8
doc: add detail explanation for 'present()' predicate of revsets

diff -r 7002bb17cc5e -r 85fdd6cf1e68 mercurial/revset.py
--- a/mercurial/revset.py	Mon May 14 13:25:42 2012 +0100
+++ b/mercurial/revset.py	Wed May 16 17:02:30 2012 +0900
@@ -841,6 +841,10 @@
     """``present(set)``
     An empty set, if any revision in set isn't found; otherwise,
     all revisions in set.
+
+    If any of specified revisions is not present in the local repository,
+    the query is normally aborted. But this predicate allows the query
+    to continue even in such cases.
     """
     try:
         return getset(repo, subset, x)


More information about the Mercurial-devel mailing list