# HG changeset patch # User Martin von Zweigbergk # Date 2015-01-07 06:55:01 # Node ID e864353f8c6b6ac6eac5c8b672ea276a8ed0540c # Parent a387b0390082b3afbc436e6882378a996e77cd00 diff: remove dead assignment diff --git a/mercurial/patch.py b/mercurial/patch.py --- a/mercurial/patch.py +++ b/mercurial/patch.py @@ -1658,7 +1658,6 @@ def diff(repo, node1=None, node2=None, m 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]