Exemple #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])
Exemple #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])
Exemple #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()
Exemple #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)
 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)
Exemple #7
0
 def selection(self):
     return qtutils.selection_list(self.bookmarks, self.settings.bookmarks)
Exemple #8
0
 def selection(self):
     return qtutils.selection_list(self.bookmarks, self.model.bookmarks)
Exemple #9
0
 def selection(self):
     return qtutils.selection_list(self.bookmarks, self.model.bookmarks)
Exemple #10
0
 def selection(self):
     return qtutils.selection_list(self.bookmarks, self.settings.bookmarks)