def compare_branches():
 view = CompareBranchesDialog(qtutils.active_window())
 view.show()
 return view

def compare_branches ( ) : view = CompareBranchesDialog ( qtutils . active_window ( ) ) view . show ( ) return view
launches a dialog for comparing a pair of branches .