Mercurial > hg > graal-jvmci-8
comparison mxtool/mx.py @ 15405:5dcf0ae606f3
mx: new export command
author | Bernhard Urban <bernhard.urban@jku.at> |
---|---|
date | Mon, 28 Apr 2014 12:07:49 +0200 |
parents | 1439685d06e4 |
children | 7a5c34543493 |
comparison
equal
deleted
inserted
replaced
15404:27fa615f5a1c | 15405:5dcf0ae606f3 |
---|---|
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): |