コード例 #1
0
ファイル: debugcommands.py プロジェクト: zerkella/eden
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)
コード例 #2
0
    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)