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