Example #1
0
    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)
Example #2
0
 def read(self, sha):
     if sha == nullid:
         return manifest.manifestdict()
     return overlaymanifest(self.repo, sha)
Example #3
0
 def parsemanifest(self, text):
     return manifestmod.manifestdict(text)