mercurial/patch.py
changeset 41365 876494fd967d
parent 40282 e4f82db071a4
child 41375 f1b0d9988825
--- a/mercurial/patch.py	Mon Sep 24 14:46:37 2018 -0700
+++ b/mercurial/patch.py	Thu Jan 17 09:17:12 2019 -0800
@@ -1448,7 +1448,6 @@
             hunk.append(l)
             return l.rstrip('\r\n')
 
-        size = 0
         while True:
             line = getline(lr, self.hunk)
             if not line:
@@ -1903,7 +1902,6 @@
             if not gitpatches:
                 raise PatchError(_('failed to synchronize metadata for "%s"')
                                  % afile[2:])
-            gp = gitpatches[-1]
             newfile = True
         elif x.startswith('---'):
             # check for a unified diff
@@ -2353,7 +2351,6 @@
             modified = filterrel(modified)
             added = filterrel(added)
             removed = filterrel(removed)
-            relfiltered = True
         # filter out copies where either side isn't inside the relative root
         copy = dict(((dst, src) for (dst, src) in copy.iteritems()
                      if dst.startswith(relroot)