mirror of
https://github.com/debauchee/barrier.git
synced 2025-06-18 10:41:40 +02:00
Merge in 1.3.6 r661:663 into 1.4.2 and trunk
This commit is contained in:
parent
f7b0e24a6e
commit
d88542ec57
2 changed files with 3 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue