Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

htmllistview: multi-selection is quite nice for picking chunks

The look and feel of chunk selection is coming into focus. We will only
present one file at a time for selection, and the header chunk will not be
selectable (will not be in the tree view itself). MultiSelection is used
to toggle the chunks the user wants to operate with. There will be buttons
for "Revert", "Move to Patch", and "Hold from Commit".

The first two will have immediate effect, first verifying the file on disk
matches the loaded file, then doing an in-memory revert+patch, then writing
to disk. The latter will mark the chunks as "held" and they will not be
committed (via a memctx commit). I'm not sure yet how I'll show "held"
chunks in the normal diff view.

Changeset 03583e9a8a77

Parent a17277d023ec

by Steve Borho

Changes to one file · Browse files at 03583e9a8a77 Showing diff from parent a17277d023ec Diff from another changeset...

 
45
46
47
48
 
49
50
51
 
45
46
47
 
48
49
50
51
@@ -45,7 +45,7 @@
  self.setWindowTitle('HtmlListView')   self.setModel(model)   self.setSelectionBehavior(QAbstractItemView.SelectItems) - self.setSelectionMode(QAbstractItemView.ExtendedSelection) + self.setSelectionMode(QAbstractItemView.MultiSelection)   self.resize(600, 200)   self.setItemDelegate(HTMLDelegate(self))   self._supportsSelection = QApplication.clipboard().supportsSelection()