changeset 679:a8be8dfe5d99 stable

evolve: drop uneeded noderange function We can use revrange instead
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Mon, 04 Feb 2013 17:41:35 +0100
parents 718262019c6f
children 5f3121c3341c
files hgext/evolve.py
diffstat 1 files changed, 2 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- 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: