def launch_sidebyside_diff(self): """ Launch diff as a side-by-side comparison using our comparison tool """ action = GitAction(self.git, notification=False, run_in_thread=False) if self.revision1.kind != "WORKING": dest1 = self._build_export_path(1, self.revision1, self.path1) self.save_diff_to_file( dest1, action.run_single(self.git.show, self.path1, self.revision1)) else: dest1 = self.path1 if self.revision2.kind != "WORKING": dest2 = self._build_export_path(2, self.revision2, self.path2) self.save_diff_to_file( dest2, action.run_single(self.git.show, self.path2, self.revision2)) else: dest2 = self.path2 helper.launch_diff_tool(dest1, dest2)
def launch_sidebyside_diff(self): """ Launch diff as a side-by-side comparison using our comparison tool """ action = SVNAction(self.svn, notification=False, run_in_thread=False) if self.revision1.kind == "working": dest1 = self.path1 else: dest1 = self._build_export_path(1, self.revision1, self.path1) action.run_single(self.svn.export, self.path1, dest1, self.revision1) action.stop_loader() if self.revision2.kind == "working": dest2 = self.path2 else: dest2 = self._build_export_path(2, self.revision2, self.path2) action.run_single(self.svn.export, self.path2, dest2, self.revision2) action.stop_loader() helper.launch_diff_tool(dest1, dest2)
def diff_local(self, path): helper.launch_diff_tool(path)
def on_files_table_row_activated(self, treeview, event, col): paths = self.files_table.get_selected_row_items(1) helper.launch_diff_tool(*paths)
def diff_local(self, path): helper.launch_diff_tool(path)
def on_files_table_row_activated(self, treeview, event, col): paths = self.files_table.get_selected_row_items(1) helper.launch_diff_tool(*paths)