amend: remove useless repo.changelog alias
authorPatrick Mezard <patrick@mezard.eu>
Tue, 12 Jun 2012 15:33:23 +0200
changeset 268 2da5af3dadeb
parent 267 34020ca0c451
child 269 6c6bb7a23bb5
amend: remove useless repo.changelog alias
hgext/evolve.py
--- 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: