Пример #1
0
 def _checkBranch(self, branch):
     try:
         validate.is_string(branch)
         return True
     except Exception:
         io.error('remove', 'branch is not valid')
         return False
Пример #2
0
 def _checkBranch(self, from_branch, to_branch):
     try:
         validate.is_string(from_branch)
         validate.is_string(to_branch)
         return True
     except Exception:
         io.error('setbranch', 'branch is not valid')
         return False
Пример #3
0
 def _checkBranch(self, from_branch, to_branch):
     try:
         validate.is_string(from_branch)
         validate.is_string(to_branch)
         return True
     except Exception:
         io.error('setbranch', 'branch is not valid')
         return False