Source

thg-qt-mq / linestoprocess.diff

Full commit
# HG changeset patch
# Parent 3ea676a4bfc5cf0c556462c7ab640dd7e62fa1f9

diff --git a/tortoisehg/hgqt/fileview.py b/tortoisehg/hgqt/fileview.py
--- a/tortoisehg/hgqt/fileview.py
+++ b/tortoisehg/hgqt/fileview.py
@@ -490,23 +490,23 @@ class HgFileView(QFrame):
             if self._fd:
                 self._fd = None
                 self._diffs = []
-                self._linestoprocess = \
+                linestoprocess = \
                     hglib.fromunicode(self.sci.text()).splitlines()
-                self._firstlinetoprocess = 0
+                firstlinetoprocess = 0
                 self._opcodes = True
             # Process linesPerBlock lines at a time
             linesPerBlock = 100
             # Look for lines matching the "diff header"
-            for n, line in enumerate(self._linestoprocess[:linesPerBlock]):
+            for n, line in enumerate(linestoprocess[:linesPerBlock]):
                 if self.diffHeaderRegExp.match(line):
-                    diffLine = self._firstlinetoprocess + n
+                    diffLine = firstlinetoprocess + n
                     self._diffs.append([diffLine, diffLine])
                     self.sci.markerAdd(diffLine, self.markerplus)
-            self._linestoprocess = self._linestoprocess[linesPerBlock:]
-            self._firstlinetoprocess += linesPerBlock
-            if not self._linestoprocess:
+            linestoprocess = linestoprocess[linesPerBlock:]
+            firstlinetoprocess += linesPerBlock
+            if not linestoprocess:
                 self._opcodes = False
-                self._firstlinetoprocess = 0
+                firstlinetoprocess = 0
         else:
             if self._fd:
                 olddata = self._fd.olddata.splitlines()