def select_commits(title, revs, summaries, multiselect=True):
 model = Model(revs, summaries)
 parent = qtutils.active_window()
 dialog = SelectCommitsDialog(model, parent, title, multiselect=multiselect)
 return dialog.select_commits()

def select_commits ( title , revs , summaries , multiselect = True ) : model = Model ( revs , summaries ) parent = qtutils . active_window ( ) dialog = SelectCommitsDialog ( model , parent , title , multiselect = multiselect ) return dialog . select_commits ( )
use the selectcommitsdialog to select commits from a list .