Example #1
0
 def create(self, state):
     sync_tree = state.sync_tree
     state.local_branch = uuid.uuid4().hex
     sync_tree.update(state.sync["remote_url"], state.sync["branch"],
                      state.local_branch)
     sync_path = os.path.abspath(sync_tree.root)
     if not sync_path in sys.path:
         from update import setup_paths
         setup_paths(sync_path)
Example #2
0
 def create(self, state):
     sync_tree = state.sync_tree
     state.local_branch = uuid.uuid4().hex
     sync_tree.update(state.sync["remote_url"],
                      state.sync["branch"],
                      state.local_branch)
     sync_path = os.path.abspath(sync_tree.root)
     if not sync_path in sys.path:
         from update import setup_paths
         setup_paths(sync_path)