add docstring to reachable
authorMatt Mackall <mpm@selenic.com>
Sun, 19 Nov 2006 16:32:36 -0600
changeset 3683 b0fd43effdb3
parent 3682 20912eb2667d
child 3684 975c2469c316
add docstring to reachable
mercurial/revlog.py
--- a/mercurial/revlog.py
+++ b/mercurial/revlog.py
@@ -543,6 +543,8 @@ class revlog(object):
             return self.index[rev][-5]
 
     def reachable(self, node, stop=None):
+        """return a hash of all nodes ancestral to a given node, including
+         the node itself, stopping when stop is matched"""
         reachable = {}
         visit = [node]
         reachable[node] = 1