[PATCH 2 of 2] patch: readgitpatch: remove unused variable 'src'

Nicolas Dumazet nicdumz at gmail.com
Mon Aug 24 08:06:24 CDT 2009


# HG changeset patch
# User Nicolas Dumazet <nicdumz.commits at gmail.com>
# Date 1251117621 -7200
# Node ID 1b128a7104e482991e47b9f9b749736e45f8b359
# Parent  501a8c8957eb0255d081934476576abb0967410b
patch: readgitpatch: remove unused variable 'src'

diff --git a/mercurial/patch.py b/mercurial/patch.py
--- a/mercurial/patch.py
+++ b/mercurial/patch.py
@@ -188,7 +188,7 @@
             if m:
                 if gp:
                     gitpatches.append(gp)
-                src, dst = m.group(1, 2)
+                dst = m.group(2)
                 gp = patchmeta(dst)
                 gp.lineno = lineno
         elif gp:


More information about the Mercurial-devel mailing list