# HG changeset patch # User Alexander Plavin # Date 1366289169 -14400 # 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 -r 53eadcb814fd -r c010cb6fdef7 mercurial/revlog.py --- a/mercurial/revlog.py Thu Apr 18 14:28:06 2013 -0700 +++ b/mercurial/revlog.py Thu Apr 18 16:46:09 2013 +0400 @@ -771,10 +771,6 @@ 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 -r 53eadcb814fd -r c010cb6fdef7 tests/test-glog.t --- a/tests/test-glog.t Thu Apr 18 14:28:06 2013 -0700 +++ b/tests/test-glog.t Thu Apr 18 16:46:09 2013 +0400 @@ -1542,7 +1542,6 @@ $ testlog --follow [] [] - abort: unknown revision '0'! $ echo a > a $ echo aa > aa $ echo f > f