comparison mxtool/mx.py @ 15408:7a5c34543493

Merge.
author Doug Simon <doug.simon@oracle.com>
date Mon, 28 Apr 2014 16:35:06 +0200
parents ca16edfcecd5 5dcf0ae606f3
children f093fa76e872
comparison
equal deleted inserted replaced
15407:2ca44250eee3 15408:7a5c34543493
603 except OSError: 603 except OSError:
604 warn(self.missing) 604 warn(self.missing)
605 except subprocess.CalledProcessError: 605 except subprocess.CalledProcessError:
606 if abortOnError: 606 if abortOnError:
607 abort('failed to get tip revision id') 607 abort('failed to get tip revision id')
608 else:
609 return None
610
611 def isDirty(self, sDir, abortOnError=True):
612 try:
613 return len(subprocess.check_output(['hg', 'status', '-R', sDir])) > 0
614 except OSError:
615 warn(self.missing)
616 except subprocess.CalledProcessError:
617 if abortOnError:
618 abort('failed to get status')
608 else: 619 else:
609 return None 620 return None
610 621
611 class Suite: 622 class Suite:
612 def __init__(self, mxDir, primary, load=True): 623 def __init__(self, mxDir, primary, load=True):