示例#1
0
 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])
示例#2
0
 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])
示例#3
0
 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()
示例#4
0
 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)
示例#5
0
 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)
示例#6
0
 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)
示例#7
0
 def selection(self):
     return qtutils.selection_list(self.bookmarks, self.settings.bookmarks)
示例#8
0
 def selection(self):
     return qtutils.selection_list(self.bookmarks, self.model.bookmarks)
示例#9
0
 def selection(self):
     return qtutils.selection_list(self.bookmarks, self.model.bookmarks)
示例#10
0
 def selection(self):
     return qtutils.selection_list(self.bookmarks, self.settings.bookmarks)