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

status: introduce some status specific display logic

Changeset 3ab3429a3599

Parent 24ef7c863c38

by Steve Borho

Changes to one file · Browse files at 3ab3429a3599 Showing diff from parent 24ef7c863c38 Diff from another changeset...

 
31
32
33
34
35
36
37
 
224
225
226
227
228
 
 
 
 
 
 
 
 
 
 
 
 
 
229
230
231
 
31
32
33
 
34
35
36
 
223
224
225
 
 
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
@@ -31,7 +31,6 @@
 # Thread refreshWctx, connect to an external progress bar  # Thread rowSelected, connect to an external progress bar  # Need mechanism to override file size/binary check -# Improve behavior of !?IC files in diff pane  # Show subrepos better  # Save splitter position to parent's QSetting  # Chunk selection @@ -224,8 +223,19 @@
    def rowSelected(self, index):   'Connected to treeview "clicked" signal' - pfile = index.model().getPath(index) - wfile = util.pconvert(pfile) + checked, status, mst, upath, path = index.model().getRow(index) + wfile = util.pconvert(path) + + if status in '?IC': + # TODO: Display file contents if a button clicked, + # add to a toolbar above the diff panel + text = '<b>File is not tracked</b>' + self.te.setHtml(text) + return + elif status in '!': + text = '<b>File is missing!</b>' + self.te.setHtml(text) + return     warnings = chunkselect.check_max_diff(self.wctx, wfile)   if warnings: