##// END OF EJS Templates
revlog: fix pure version of _partialmatch() to include nullid...
Martin von Zweigbergk -
r39227:5517d62c default
parent child Browse files
Show More
@@ -27,6 +27,7 import zlib
27 27 from .node import (
28 28 bin,
29 29 hex,
30 nullhex,
30 31 nullid,
31 32 nullrev,
32 33 wdirfilenodeids,
@@ -1853,6 +1854,8 class revlog(object):
1853 1854 nl = [e[7] for e in self.index if e[7].startswith(prefix)]
1854 1855 nl = [n for n in nl if hex(n).startswith(id) and
1855 1856 self.hasnode(n)]
1857 if nullhex.startswith(id):
1858 nl.append(nullid)
1856 1859 if len(nl) > 0:
1857 1860 if len(nl) == 1 and not maybewdir:
1858 1861 self._pcache[id] = nl[0]
General Comments 0
You need to be logged in to leave comments. Login now