Merge in 1.3.6 r661:663 into 1.4.2 and trunk

This commit is contained in:
Nick Bolton 2010-06-22 00:09:29 +00:00
parent f7b0e24a6e
commit d88542ec57
2 changed files with 3 additions and 3 deletions

View file

@ -376,11 +376,11 @@ class InternalCommands:
print self.find_revision()
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()
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)
if not m: