From a92bd0f094a8799c4b382c4370947e864cb4a92b Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Tue, 6 Jan 2015 22:55:01 -0800 Subject: [PATCH] diff: remove dead assignment --- mercurial/patch.py | 1 - 1 file changed, 1 deletion(-) diff --git a/mercurial/patch.py b/mercurial/patch.py index e6fd0e4d06..471f9c280f 100644 --- a/mercurial/patch.py +++ b/mercurial/patch.py @@ -1658,7 +1658,6 @@ def diff(repo, node1=None, node2=None, match=None, changes=None, opts=None, if not modified and not added and not removed: return [] - revs = None hexfunc = repo.ui.debugflag and hex or short revs = [hexfunc(node) for node in [ctx1.node(), ctx2.node()] if node]