Mercurial > hg
changeset 3630:508036290b00
revlog: reachable actually takes a node
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 13 Nov 2006 13:26:57 -0600 |
parents | 4cfb72bcb978 |
children | 770c4fc03b8e |
files | mercurial/revlog.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revlog.py Mon Nov 13 13:26:57 2006 -0600 +++ b/mercurial/revlog.py Mon Nov 13 13:26:57 2006 -0600 @@ -542,10 +542,10 @@ else: return self.index[rev][-5] - def reachable(self, rev, stop=None): + def reachable(self, node, stop=None): reachable = {} - visit = [rev] - reachable[rev] = 1 + visit = [node] + reachable[node] = 1 if stop: stopn = self.rev(stop) else: