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)
def getpack(self, path): return revisionstore.datapack(path)