patch: remove unused patchmeta.lineno
authorPatrick Mezard <pmezard@gmail.com>
Sat, 09 Oct 2010 15:13:08 -0500
changeset 12670 d82d40ff9860
parent 12669 b0fa39c68370
child 12671 1b4e3152da13
patch: remove unused patchmeta.lineno
mercurial/patch.py
--- a/mercurial/patch.py	Sat Oct 09 15:13:08 2010 -0500
+++ b/mercurial/patch.py	Sat Oct 09 15:13:08 2010 -0500
@@ -295,7 +295,6 @@
         self.oldpath = None
         self.mode = None
         self.op = 'MODIFY'
-        self.lineno = 0
         self.binary = False
 
     def setmode(self, mode):
@@ -312,9 +311,7 @@
     # Filter patch for git information
     gp = None
     gitpatches = []
-    lineno = 0
     for line in lr:
-        lineno += 1
         line = line.rstrip(' \r\n')
         if line.startswith('diff --git'):
             m = gitre.match(line)
@@ -323,7 +320,6 @@
                     gitpatches.append(gp)
                 dst = m.group(2)
                 gp = patchmeta(dst)
-                gp.lineno = lineno
         elif gp:
             if line.startswith('--- '):
                 gitpatches.append(gp)