diff -r ca39dbc589c9 -r e5f445c94226 mercurial/localrepo.py --- a/mercurial/localrepo.py Mon Jan 19 12:58:01 2009 +0100 +++ b/mercurial/localrepo.py Mon Jan 19 12:59:56 2009 +0100 @@ -1217,7 +1217,7 @@ # filter out the heads that cannot be reached from startrev bheads = self.changelog.nodesbetween([start], bheads)[2] if not closed: - bheads = [h for h in bheads if + bheads = [h for h in bheads if ('close' not in self.changelog.read(h)[5])] return bheads