changeset 20738:33943add5d65

revset: add some documentation for lazyset
author Pierre-Yves David <pierre-yves.david@fb.com>
date Fri, 14 Mar 2014 10:55:03 -0700
parents b141080e70c5
children 1b4f2399f3c4
files mercurial/revset.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revset.py	Fri Mar 14 10:59:51 2014 -0700
+++ b/mercurial/revset.py	Fri Mar 14 10:55:03 2014 -0700
@@ -2254,6 +2254,10 @@
     revset
     """
     def __init__(self, subset, condition=lambda x: True):
+        """
+        condition: a function that decide whether a revision in the subset
+                   belongs to the revset or not.
+        """
         self._subset = subset
         self._condition = condition
         self._cache = {}