Changeset 53ff4aa2e8a3…
Parent 274a19501200…
by
Changes to one file · Browse files at 53ff4aa2e8a3 Showing diff from parent 274a19501200 Diff from another changeset...
@@ -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
|
Loading...