]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed a subversion 1.5 compatibility problem in merge tool.
authorMarko Grönroos <magi@iki.fi>
Tue, 7 Apr 2009 13:02:47 +0000 (13:02 +0000)
committerMarko Grönroos <magi@iki.fi>
Tue, 7 Apr 2009 13:02:47 +0000 (13:02 +0000)
svn changeset:7350/svn branch:6.0

build/bin/mergetool.py

index ef13448760b9a8bd847c24a52adfa247f218080b..91d9d5105c1ac4e598357b7f903f425b7803fb0b 100755 (executable)
@@ -79,14 +79,12 @@ def listChangedFiles():
        changed  = []
        for line in lines:
                # Remove trailing newline
-               line = line[:-1]
-
-               # Remove possible space character in the beginning of line
-               line = line.lstrip()
-
-               # Extract the file state and name
+               line = line.rstrip()
                print line
-               (filestate, filename) = re.split(r'[ \+]+', line)
+               
+               # Extract the file state and name
+               filestate = line[0:2].strip()
+               filename  = line[7:].strip()
 
                # Ignore files in build directory
                if (filename.startswith("build/merge/") \
@@ -545,7 +543,8 @@ def commandRevert():
                line = line[:-1]
 
                # Extract the file state and name
-               (filestate, filename) = re.split(r'[ \+]+', line)
+               filestate = line[0:2].strip()
+               filename  = line[7:].strip()
 
                # Ignore files in build directory
                if (filename.startswith("build/merge/") \