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

status: add a method to clear the given file/directory pattern

Changeset a7cec95938d2

Parent 51cb352c1e6f

by Steve Borho

Changes to one file · Browse files at a7cec95938d2 Showing diff from parent 51cb352c1e6f Diff from another changeset...

 
28
29
30
31
32
33
34
 
91
92
93
 
 
 
 
 
 
 
 
 
94
95
96
 
28
29
30
 
31
32
33
 
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
@@ -28,7 +28,6 @@
 # (it interferes with selection the way it is now)  # Thread refreshWctx, connect to an external progress bar  # Thread rowSelected, connect to an external progress bar -# Need mechanism to clear pats  # Need mechanism to override file size/binary check  # Improve behavior of !?IC files in diff pane  # Show subrepos better @@ -91,6 +90,15 @@
  vbox.addWidget(tv)   split.addWidget(frame)   + if self.pats: + def clearPattern(): + self.pats = [] + self.refreshWctx() + cpb.setVisible(False) + cpb = QPushButton(_('Remove filter, show root')) + vbox.addWidget(cpb) + cpb.clicked.connect(clearPattern) +   self.connect(tv, SIGNAL('clicked(QModelIndex)'), self.rowSelected)   self.connect(tv, SIGNAL('menuAction()'), self.refreshWctx)   tv.setItemsExpandable(False)