revset: add some documentation for lazyset
authorPierre-Yves David <pierre-yves.david@fb.com>
Fri, 14 Mar 2014 10:55:03 -0700
changeset 20738 33943add5d65
parent 20737 b141080e70c5
child 20739 1b4f2399f3c4
revset: add some documentation for lazyset
mercurial/revset.py
--- 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 = {}