Show More
@@ -27,6 +27,7 b' import zlib' | |||||
27 | from .node import ( |
|
27 | from .node import ( | |
28 | bin, |
|
28 | bin, | |
29 | hex, |
|
29 | hex, | |
|
30 | nullhex, | |||
30 | nullid, |
|
31 | nullid, | |
31 | nullrev, |
|
32 | nullrev, | |
32 | wdirfilenodeids, |
|
33 | wdirfilenodeids, | |
@@ -1853,6 +1854,8 b' class revlog(object):' | |||||
1853 | nl = [e[7] for e in self.index if e[7].startswith(prefix)] |
|
1854 | nl = [e[7] for e in self.index if e[7].startswith(prefix)] | |
1854 | nl = [n for n in nl if hex(n).startswith(id) and |
|
1855 | nl = [n for n in nl if hex(n).startswith(id) and | |
1855 | self.hasnode(n)] |
|
1856 | self.hasnode(n)] | |
|
1857 | if nullhex.startswith(id): | |||
|
1858 | nl.append(nullid) | |||
1856 | if len(nl) > 0: |
|
1859 | if len(nl) > 0: | |
1857 | if len(nl) == 1 and not maybewdir: |
|
1860 | if len(nl) == 1 and not maybewdir: | |
1858 | self._pcache[id] = nl[0] |
|
1861 | self._pcache[id] = nl[0] |
General Comments 0
You need to be logged in to leave comments.
Login now