Commits

Pierre-Yves David  committed a8be8df

evolve: drop uneeded noderange function

We can use revrange instead

  • Participants
  • Parent commits 7182620

Comments (0)

Files changed (1)

File hgext/evolve.py

 ### 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
 #############################
 
     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: