[Lldb-commits] [lldb] r133836 - /lldb/trunk/test/dotest.py
Johnny Chen
johnny.chen at apple.com
Fri Jun 24 15:52:05 PDT 2011
Author: johnny
Date: Fri Jun 24 17:52:05 2011
New Revision: 133836
URL: http://llvm.org/viewvc/llvm-project?rev=133836&view=rev
Log:
Compute svn_info for git-svn bridge, too.
Modified:
lldb/trunk/test/dotest.py
Modified: lldb/trunk/test/dotest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/dotest.py?rev=133836&r1=133835&r2=133836&view=diff
==============================================================================
--- lldb/trunk/test/dotest.py (original)
+++ lldb/trunk/test/dotest.py Fri Jun 24 17:52:05 2011
@@ -591,8 +591,12 @@
os.system('%s -v' % lldbExec)
import subprocess
- pipe = subprocess.Popen(["svn", "info", base], stdout = subprocess.PIPE)
- svn_info = pipe.stdout.read()
+ if os.path.isdir(os.path.join(base, '.svn')):
+ pipe = subprocess.Popen(["svn", "info", base], stdout = subprocess.PIPE)
+ svn_info = pipe.stdout.read()
+ elif os.path.isdir(os.path.join(base, '.git')):
+ pipe = subprocess.Popen(["git", "svn", "info", base], stdout = subprocess.PIPE)
+ svn_info = pipe.stdout.read()
print svn_info
global ignore
More information about the lldb-commits
mailing list