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:
Martin von Zweigbergk 2016-11-04 13:49:15 -07:00
parent 426cc425cb
commit e6e8c26ad2

View File

@ -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)