From 07203b799722834cf51ac667add85d495225ceba Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marko=20Gr=C3=B6nroos?= Date: Tue, 7 Apr 2009 13:02:47 +0000 Subject: [PATCH] Fixed a subversion 1.5 compatibility problem in merge tool. svn changeset:7350/svn branch:6.0 --- build/bin/mergetool.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/build/bin/mergetool.py b/build/bin/mergetool.py index ef13448760..91d9d5105c 100755 --- a/build/bin/mergetool.py +++ b/build/bin/mergetool.py @@ -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/") \ -- 2.39.5