Mercurial > hg
comparison mercurial/manifest.py @ 30338:b0ca939414ea
treemanifest: fix a "treeinmem" case
f2c5b9d48b29 (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.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 04 Nov 2016 13:49:15 -0700 |
parents | b19291e5d506 |
children | 608ba935e041 |
comparison
equal
deleted
inserted
replaced
30337:6ecad4b73569 | 30338:b0ca939414ea |
---|---|
1425 return treemanifestctx(self._repo, dir, subm).read() | 1425 return treemanifestctx(self._repo, dir, subm).read() |
1426 m.read(gettext, readsubtree) | 1426 m.read(gettext, readsubtree) |
1427 m.setnode(self._node) | 1427 m.setnode(self._node) |
1428 self._data = m | 1428 self._data = m |
1429 else: | 1429 else: |
1430 text = revlog.revision(self._node) | 1430 text = rl.revision(self._node) |
1431 arraytext = array.array('c', text) | 1431 arraytext = array.array('c', text) |
1432 rl.fulltextcache[self._node] = arraytext | 1432 rl.fulltextcache[self._node] = arraytext |
1433 self._data = treemanifest(dir=self._dir, text=text) | 1433 self._data = treemanifest(dir=self._dir, text=text) |
1434 | 1434 |
1435 return self._data | 1435 return self._data |