hgext/evolve.py
changeset 268 2da5af3dadeb
parent 265 24943df310d4
child 269 6c6bb7a23bb5
--- a/hgext/evolve.py	Mon Jun 18 17:15:04 2012 +0200
+++ b/hgext/evolve.py	Tue Jun 12 15:33:23 2012 +0200
@@ -425,10 +425,9 @@
                 tempid = None
 
             # find all changesets to be considered updates
-            cl = repo.changelog
             head = repo['.']
-            updatenodes = set(cl.nodesbetween(roots=[old.node()],
-                                              heads=[head.node()])[0])
+            updatenodes = set(repo.changelog.nodesbetween(
+                    roots=[old.node()], heads=[head.node()])[0])
             updatenodes.remove(old.node())
             okoptions = ['message', 'logfile', 'edit', 'user']
             if not updatenodes: