GNOME Bugzilla – Bug 758804
Merge all (from right|from left) has no effect
Last modified: 2016-01-12 11:56:18 UTC
Using any of the "Merge all" buttons from the menu has no effect. Apparently an exception occurs, because on the console I can see: For the "Merge all" button: Traceback (most recent call last):
+ Trace 235772
for mergedfile in merger.merge_3_files(False):
mergedtext.append(self.texts[1][i])
txt_filtered = self.textfilter(txt, self.buf, line_start, line_end)
For the "Merge all from right" button: Traceback (most recent call last): File "/home/ablu/meld/meld/filediff.py", line 600, in action_pull_all_changes_right self.pull_all_non_conflicting_changes(src, dst) File "/home/ablu/meld/meld/filediff.py", line 582, in pull_all_non_conflicting_changes for mergedfile in merger.merge_2_files(src, dst): File "/home/ablu/meld/meld/merge.py", line 248, in merge_2_files mergedtext.append(self.texts[toindex][i]) File "/home/ablu/meld/meld/meldbuffer.py", line 272, in __getitem__ txt_filtered = self.textfilter(txt, self.buf, line_start, line_end) TypeError: <lambda>() takes exactly 1 argument (4 given) For the "Merge all from left" button: Traceback (most recent call last): File "/home/ablu/meld/meld/filediff.py", line 596, in action_pull_all_changes_left self.pull_all_non_conflicting_changes(src, dst) File "/home/ablu/meld/meld/filediff.py", line 582, in pull_all_non_conflicting_changes for mergedfile in merger.merge_2_files(src, dst): File "/home/ablu/meld/meld/merge.py", line 248, in merge_2_files mergedtext.append(self.texts[toindex][i]) File "/home/ablu/meld/meld/meldbuffer.py", line 272, in __getitem__ txt_filtered = self.textfilter(txt, self.buf, line_start, line_end) TypeError: <lambda>() takes exactly 1 argument (4 given) It happens in the latest git and also in the latest version shipped by fedora (3.14.0). This makes meld a lot less useful for me. I am using Fedora 23, meld seems to use Python 2 (I have 2.7.10 installed). In case you need further information let me know :) Regards, Erik
Created attachment 316472 [details] [review] Patch containing fix This patch seems to fix the issue for me. Would be cool to get a review from somebody with more code knowledge :)
Awesome, thanks! I've pushed your fix to current master. The bug in 3.14.0 is different, but has already been fixed in 3.14.1, so just needs Fedora to update to latest stable.
Possible duplicate of https://bugzilla.gnome.org/show_bug.cgi?id=753097