changeset 17765:ef7760f0be87

histedit: rename `revs` in `ctxs` inside the `between` function The variable content is actually contexts, not revision numbers.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Mon, 15 Oct 2012 00:05:16 +0200
parents c1b661ee29ff
children d9da327516f8
files hgext/histedit.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/histedit.py	Sun Oct 14 23:03:58 2012 +0200
+++ b/hgext/histedit.py	Mon Oct 15 00:05:16 2012 +0200
@@ -587,14 +587,14 @@
     """select and validate the set of revision to edit
 
     When keep is false, the specified set can't have children."""
-    revs = list(repo.set('%n::%n', old, new))
+    ctxs = list(repo.set('%n::%n', old, new))
     if not keep:
-        if repo.revs('(%ld::) - (%ld + hidden())', revs, revs):
+        if repo.revs('(%ld::) - (%ld + hidden())', ctxs, ctxs):
             raise util.Abort(_('cannot edit history that would orphan nodes'))
-        root = min(revs)
+        root = min(ctxs)
         if not root.phase():
             raise util.Abort(_('cannot edit immutable changeset: %s') % root)
-    return [c.node() for c in revs]
+    return [c.node() for c in ctxs]
 
 
 def writestate(repo, parentnode, rules, keep, topmost, replacements):