def rollback(self, root, num = None, replaceFiles = False, tagScript = None,
                 justDatabase = False, showInfoOnly = False,
                 abortOnError = False, capsuleChangesets = []):
        # hack to allow the root as the first parameter
        if num is None and type(root) == int:
            num = root
            root = self.rootDir

        self.cfg.root = root
        client = conaryclient.ConaryClient(self.cfg)
        repos = self.openRepository()
        try:
            ret = client.applyRollback("r.%d" % num,
                                       replaceFiles=replaceFiles,
                                       tagScript = tagScript,
                                       justDatabase = justDatabase,
                                       showInfoOnly = showInfoOnly,
                                       abortOnError = abortOnError,
                                       capsuleChangesets = capsuleChangesets)
        finally:
            client.close()
        return ret
dataset/ETHPy150Open sassoftware/conary/conary_test/rephelp.py/RepositoryHelper.rollback/original