Commits

Yuya Nishihara committed a61d306

graft: don't accept dest rev via opts table

Unlike rebase, graft does not allow specifying destination revision.

  • Participants
  • Parent commits d7edcb4

Comments (0)

Files changed (2)

File tortoisehg/hgqt/graft.py

         self.aborted = False
         self.valid = True
 
-        destrev = opts.get('dest', '.')
         def cleanrevlist(revlist):
             return [self.repo[rev].rev() for rev in revlist]
         self.sourcelist = cleanrevlist(opts.get('source', ['.']))
         box.setContentsMargins(*(6,)*4)
         self.setLayout(box)
 
+        destrev = self.repo['.'].rev()
         if len(self.sourcelist) > 1:
             listlabel = qtlib.LabeledSeparator(
                 _('Graft %d changesets on top of changeset %s') \

File tortoisehg/hgqt/repowidget.py

             revlist.append(str(rev))
         if not revlist:
             revlist = [self.rev]
-        opts = {'source' : revlist, 'dest': self.repo['.'].rev()}
-        dlg = graft.GraftDialog(self.repo, self, **opts)
+        dlg = graft.GraftDialog(self.repo, self, source=revlist)
         dlg.finished.connect(dlg.deleteLater)
         if dlg.valid:
             dlg.exec_()