def open(self): """Opens a new git-cola session on a bookmark""" selection = qtutils.selection_list(self.view.bookmarks, self.model.bookmarks) if not selection: return for item in selection: utils.fork(['git', 'cola', item])
def open(self): """Opens a new git-cola session on a bookmark""" selection = qtutils.selection_list(self.view.bookmarks, self.model.bookmarks) if not selection: return for item in selection: utils.fork([sys.executable, sys.argv[0], '--repo', item])
def delete(self): """Removes a bookmark from the bookmarks list""" selection = qtutils.selection_list(self.view.bookmarks, self.model.bookmarks) if not selection: return for item in selection: self.model.remove_bookmark(item) self.refresh_view()
def select_commits(self): summaries = self.model.summaries if not summaries: msg = self.tr('No commits exist in this branch.') Interaction.log(msg) return [] qtutils.set_items(self.commit_list, summaries) self.show() if self.exec_() != QtGui.QDialog.Accepted: return [] revs = self.model.revisions return qtutils.selection_list(self.commit_list, revs)
def select_commits(self): summaries = self.model.summaries if not summaries: msg = N_('No commits exist in this branch.') Interaction.log(msg) return [] qtutils.set_items(self.commit_list, summaries) self.show() if self.exec_() != QtGui.QDialog.Accepted: return [] revs = self.model.revisions return qtutils.selection_list(self.commit_list, revs)
def select_commits(self): summaries = self.model.summaries if not summaries: msg = self.tr('No commits exist in this branch.') qtutils.log(1, msg) return [] qtutils.set_items(self.view.commit_list, summaries) self.view.show() if self.view.exec_() != QtGui.QDialog.Accepted: return [] revs = self.model.revisions list_widget = self.view.commit_list return qtutils.selection_list(list_widget, revs)
def selection(self): return qtutils.selection_list(self.bookmarks, self.settings.bookmarks)
def selection(self): return qtutils.selection_list(self.bookmarks, self.model.bookmarks)