mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
treemanifest: fix a "treeinmem" case
7089745181c5 (manifest: make treemanifestctx store the repo, 2016-10-18) broke most tests when run with treeinmem=True. The treeinmem mode can not be enabled by the user, so this did not break anything in practice, but it's useful to have it working for testing the treemanifest code.
This commit is contained in:
parent
426cc425cb
commit
e6e8c26ad2
@ -1427,7 +1427,7 @@ class treemanifestctx(object):
|
||||
m.setnode(self._node)
|
||||
self._data = m
|
||||
else:
|
||||
text = revlog.revision(self._node)
|
||||
text = rl.revision(self._node)
|
||||
arraytext = array.array('c', text)
|
||||
rl.fulltextcache[self._node] = arraytext
|
||||
self._data = treemanifest(dir=self._dir, text=text)
|
||||
|
Loading…
Reference in New Issue
Block a user