# HG changeset patch # User Alexander Plavin # Date 2013-04-18 12:46:09 # Node ID c010cb6fdef787d3493725e1403d0a6f19b704d9 # Parent 53eadcb814fd9d3a8db3117366999be5b0318cac revlog: fix a regression with null revision Introduced in the patch which fixes issue3497 Part of that patch was erroneously submitted and it shouldn't be in the code diff --git a/mercurial/revlog.py b/mercurial/revlog.py --- a/mercurial/revlog.py +++ b/mercurial/revlog.py @@ -771,10 +771,6 @@ class revlog(object): nl = [n for n in nl if hex(n).startswith(id)] if len(nl) > 0: if len(nl) == 1: - if nl[0] == nullid: - # dummy null revision always exists, - # it shouldn't be returned here - return None self._pcache[id] = nl[0] return nl[0] raise LookupError(id, self.indexfile, diff --git a/tests/test-glog.t b/tests/test-glog.t --- a/tests/test-glog.t +++ b/tests/test-glog.t @@ -1542,7 +1542,6 @@ have 2 filelog topological heads in a li $ testlog --follow [] [] - abort: unknown revision '0'! $ echo a > a $ echo aa > aa $ echo f > f