|
|
|
@ -1,5 +1,4 @@
|
|
|
|
|
from ast import ExceptHandler
|
|
|
|
|
from multiprocessing.dummy import Process
|
|
|
|
|
import os
|
|
|
|
|
from .. import __Orchestrator__
|
|
|
|
|
from . import Process
|
|
|
|
@ -97,7 +96,7 @@ class Git():
|
|
|
|
|
|
|
|
|
|
:param inBranchLocalStr: _description_
|
|
|
|
|
:type inBranchLocalStr: str
|
|
|
|
|
:param inBranchRemoteStr: _description_
|
|
|
|
|
:param inBranchRemoteStr: example: origin/prd
|
|
|
|
|
:type inBranchRemoteStr: str
|
|
|
|
|
:return: _description_
|
|
|
|
|
:rtype: bool
|
|
|
|
@ -116,14 +115,15 @@ class Git():
|
|
|
|
|
|
|
|
|
|
:param inBranchLocalStr: _description_
|
|
|
|
|
:type inBranchLocalStr: str
|
|
|
|
|
:param inBranchRemoteStr: _description_
|
|
|
|
|
:param inBranchRemoteStr: example: origin/prd
|
|
|
|
|
:type inBranchRemoteStr: str
|
|
|
|
|
:param inPreviousBranchRestoreBool: _description_, defaults to True
|
|
|
|
|
:type inPreviousBranchRestoreBool: bool, optional
|
|
|
|
|
:param inIntervalSecFloat: _description_, defaults to 60.0
|
|
|
|
|
:type inIntervalSecFloat: float, optional
|
|
|
|
|
"""
|
|
|
|
|
Orchestrator.OrchestratorScheduleGet().every(inIntervalSecFloat).seconds().do(self.BranchRevLastGet, inBranchLocalStr, inBranchRemoteStr, inPreviousBranchRestoreBool)
|
|
|
|
|
#self.BranchRevLastGet(inBranchLocalStr, inBranchRemoteStr, inPreviousBranchRestoreBool)
|
|
|
|
|
Orchestrator.OrchestratorScheduleGet().every(inIntervalSecFloat).seconds.do(self.BranchRevLastGet, inBranchLocalStr, inBranchRemoteStr, inPreviousBranchRestoreBool)
|
|
|
|
|
|
|
|
|
|
def BranchRevLastGet(self, inBranchLocalStr: str, inBranchRemoteStr: str, inPreviousBranchRestoreBool: bool = True):
|
|
|
|
|
"""Do some action to get the last revision
|
|
|
|
|