evolve: remove dead initilization of "newnode" variable
authorMartin von Zweigbergk <martinvonz@google.com>
Mon, 09 Dec 2019 10:44:42 -0800
changeset 5004 dc43e62ea796
parent 5003 ad1ea34335cb
child 5005 e66ba12e5db3
evolve: remove dead initilization of "newnode" variable It's been dead since f9dad99a90d5 (evolve: create a new commit instead of amending one of the divergents, 2018-06-13).
hgext3rd/evolve/evolvecmd.py
--- a/hgext3rd/evolve/evolvecmd.py	Thu Dec 12 17:16:02 2019 +0530
+++ b/hgext3rd/evolve/evolvecmd.py	Mon Dec 09 10:44:42 2019 -0800
@@ -648,9 +648,6 @@
                                    other.description())
         user = utility.mergeusers(ui, base, divergent, other)
 
-        # new node if any formed as the replacement
-        newnode = None
-
         mergehook(repo, base, divergent, other)
 
         date = divergent.date()
@@ -663,6 +660,7 @@
             else:
                 date = max(divergent.date(), other.date())
 
+        # new node if any formed as the replacement
         newnode = repo.commit(text=desc, user=user, date=date)
         if newnode == divergent.node() or newnode is None:
             # no changes