changeset 3683:b0fd43effdb3

add docstring to reachable
author Matt Mackall <mpm@selenic.com>
date Sun, 19 Nov 2006 16:32:36 -0600
parents 20912eb2667d
children 975c2469c316
files mercurial/revlog.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revlog.py	Sun Nov 19 16:32:36 2006 -0600
+++ b/mercurial/revlog.py	Sun Nov 19 16:32:36 2006 -0600
@@ -543,6 +543,8 @@
             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