Commits

Yuya Nishihara  committed 1481e24

graft: merge source csinfo and cslist to save vertical space (closes #3655)

They show mostly the same data.

  • Participants
  • Parent commits 3d3d657

Comments (0)

Files changed (1)

File tortoisehg/hgqt/graft.py

         self.setLayout(box)
 
         destrev = self.repo['.'].rev()
-        listlabel = qtlib.LabeledSeparator(
-            _('Graft %d changesets on top of changeset %s')
-            % (len(self.sourcelist), destrev))
-        self.layout().addWidget(listlabel)
         self.cslist = cslist.ChangesetList(self.repo)
-        self.layout().addWidget(self.cslist)
-        listlabel.setVisible(len(self.sourcelist) > 1)
-        self.cslist.setVisible(len(self.sourcelist) > 1)
 
         style = csinfo.panelstyle(selectable=True)
         self.srcb = srcb = QGroupBox()
         srcb.setLayout(QVBoxLayout())
         srcb.layout().setContentsMargins(*(2,)*4)
 
-        self.source = csinfo.create(self.repo, None, style, withupdate=True)
         self._updateSource(0)
-        srcb.layout().addWidget(self.source)
+        srcb.layout().addWidget(self.cslist)
         self.layout().addWidget(srcb)
 
         destb = QGroupBox(_('To graft destination'))
     def _updateSource(self, idx):
         self._updateSourceTitle(idx)
         self.cslist.update(self.sourcelist[idx:])
-        self.source.update(self.repo[self.sourcelist[idx]])
 
     @pyqtSlot(bool)
     def _onCheckFinished(self, clean):