diff options
Diffstat (limited to 'build/bin')
-rwxr-xr-x | build/bin/mergetool.py | 15 |
1 files 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/") \ |