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

chunks: add getSelectedFileAndChunks() and getFileList() helper methods

Changeset 53ff4aa2e8a3

Parent 274a19501200

by Steve Borho

Changes to one file · Browse files at 53ff4aa2e8a3 Showing diff from parent 274a19501200 Diff from another changeset...

 
97
98
99
 
 
 
 
 
100
101
102
 
239
240
241
 
 
 
242
243
244
 
97
98
99
100
101
102
103
104
105
106
107
 
244
245
246
247
248
249
250
251
252
@@ -97,6 +97,11 @@
  path = self.repo.wjoin(self.currentFile)   wctxactions.edit(self, self.repo.ui, self.repo, [path])   + def getSelectedFileAndChunks(self): + chunks = self.diffbrowse.curchunks + dchunks = [c for c in chunks[1:] if c.selected] + return self.currentFile, dchunks +   def deleteSelectedChunks(self):   'delete currently selected chunks'   repo = self.repo @@ -239,6 +244,9 @@
  wlock.release()   return False   + def getFileList(self): + return self.filelistmodel._ctx.files() +   def removeFile(self, wfile):   repo = self.repo   ctx = self.filelistmodel._ctx