예제 #1
0
def debugdatapack(ui, *paths, **opts):
    for path in paths:
        if ".data" in path:
            path = path[:path.index(".data")]
        ui.write("%s:\n" % path)
        dpack = revisionstore.datapack(path)
        debugdatastore(ui, dpack, **opts)
    def createPackStore(self, packdir, revisions=None):
        if revisions is None:
            revisions = [("filename", self.getFakeHash(), nullid, "content")]

        packer = revisionstore.mutabledeltastore(packfilepath=packdir)

        for filename, node, base, content in revisions:
            packer.add(filename, node, base, content)

        path = packer.flush()
        return revisionstore.datapack(path)
예제 #3
0
 def getpack(self, path):
     return revisionstore.datapack(path)