[PATCH] patch: remove useless variable assignment

Patrick Mezard patrick at mezard.eu
Thu Apr 5 12:27:50 CDT 2012


# HG changeset patch
# User Patrick Mezard <patrick at mezard.eu>
# Date 1333646584 -7200
# Node ID d23197e08d05fe0d648ceb23cd20791d3fb63a1c
# Parent  913be8c5139c1902260ad06f565901d7f793029f
patch: remove useless variable assignment

diff --git a/mercurial/patch.py b/mercurial/patch.py
--- a/mercurial/patch.py
+++ b/mercurial/patch.py
@@ -1286,7 +1286,6 @@
                 current_file = None
             afile, bfile, first_hunk, gp = values
             if gp:
-                path = pstrip(gp.path)
                 gp.path = pstrip(gp.path)
                 if gp.oldpath:
                     gp.oldpath = pstrip(gp.oldpath)


More information about the Mercurial-devel mailing list