Beispiel #1
0
    def create(self, state):
        if not state.kwargs["sync"]:
            return

        if not state.sync_tree:
            os.mkdir(state.sync["path"])
            state.sync_tree = GitTree(root=state.sync["path"])

        kwargs = state.kwargs
        with state.push(["sync", "paths", "metadata_path", "tests_path", "local_tree", "sync_tree"]):
            state.target_rev = kwargs["rev"]
            state.no_patch = kwargs["no_patch"]
            runner = SyncFromUpstreamRunner(self.logger, state)
            runner.run()
Beispiel #2
0
    def create(self, state):
        if not state.kwargs["sync"]:
            return

        if not state.sync_tree:
            os.mkdir(state.sync["path"])
            state.sync_tree = GitTree(root=state.sync["path"])

        kwargs = state.kwargs
        with state.push([
                "sync", "paths", "metadata_path", "tests_path", "local_tree",
                "sync_tree"
        ]):
            state.target_rev = kwargs["rev"]
            state.no_patch = kwargs["no_patch"]
            runner = SyncFromUpstreamRunner(self.logger, state)
            runner.run()