hgext/evolve.py
branchstable
changeset 679 a8be8dfe5d99
parent 678 718262019c6f
child 680 5f3121c3341c
--- a/hgext/evolve.py	Mon Feb 04 17:40:28 2013 +0100
+++ b/hgext/evolve.py	Mon Feb 04 17:41:35 2013 +0100
@@ -669,11 +669,6 @@
 ### util function
 #############################
 
-def noderange(repo, revsets):
-    """The same as revrange but return node"""
-    return map(repo.changelog.node,
-               scmutil.revrange(repo, revsets))
-
 ### changeset rewriting logic
 #############################
 
@@ -1262,8 +1257,8 @@
     try:
         lock = repo.lock()
         try:
-            new = set(noderange(repo, opts['new']))
-            targetnodes = set(noderange(repo, revs))
+            new = set(scmutil.revrange(repo, opts['new']))
+            targetnodes = set(scmutil.revrange(repo, revs))
             if not targetnodes:
                 raise util.Abort('nothing to prune')
             if new: