Merge in 1.3.6 r661:663 into 1.4.2 and trunk
This commit is contained in:
parent
f7b0e24a6e
commit
d88542ec57
|
@ -376,11 +376,11 @@ class InternalCommands:
|
||||||
print self.find_revision()
|
print self.find_revision()
|
||||||
|
|
||||||
def find_revision(self):
|
def find_revision(self):
|
||||||
p = subprocess.Popen(['svn', 'info'], stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
|
p = subprocess.Popen(['svn', 'info'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||||
stdout, stderr = p.communicate()
|
stdout, stderr = p.communicate()
|
||||||
|
|
||||||
if p.returncode != 0:
|
if p.returncode != 0:
|
||||||
raise Exception('Could not get revision info with error code code: ' + str(p.returncode))
|
raise Exception('Could not get revision - svn info failed with code: ' + str(p.returncode))
|
||||||
|
|
||||||
m = re.search('.*Revision: (\d+).*', stdout)
|
m = re.search('.*Revision: (\d+).*', stdout)
|
||||||
if not m:
|
if not m:
|
||||||
|
|
2
hm.py
2
hm.py
|
@ -169,7 +169,7 @@ def run_cmd(cmd, argv = []):
|
||||||
except:
|
except:
|
||||||
if not verbose:
|
if not verbose:
|
||||||
# print friendly error for users
|
# print friendly error for users
|
||||||
sys.stderr.write('Error: ' + sys.exc_info()[1].__str__())
|
sys.stderr.write('Error: ' + sys.exc_info()[1].__str__() + '\n')
|
||||||
exit(1)
|
exit(1)
|
||||||
else:
|
else:
|
||||||
# if user wants to be verbose let python do it's thing
|
# if user wants to be verbose let python do it's thing
|
||||||
|
|
Loading…
Reference in New Issue