def testText(self): a = cstore.treemanifest(FakeDataStore()) zflags = hashflags(requireflag=True) a.set("abc/z", *zflags) treetext = a.text() treetextv2 = a.text() b = manifest.manifestdict() b["abc/z"] = zflags[0] b.setflag("abc/z", zflags[1]) fulltext = b.text() fulltextv2 = b.text() self.assertEquals(treetext, fulltext) self.assertEquals(treetextv2, fulltextv2)
def read(self, sha): if sha == nullid: return manifest.manifestdict() return overlaymanifest(self.repo, sha)
def parsemanifest(self, text): return manifestmod.manifestdict(text)