# HG changeset patch # User Pierre-Yves David # Date 1359996095 -3600 # Node ID a8be8dfe5d99fbcbeca215f3bed281f86dc67952 # Parent 718262019c6f195bb8cdf462a03265f3fb33b73b evolve: drop uneeded noderange function We can use revrange instead diff -r 718262019c6f -r a8be8dfe5d99 hgext/evolve.py --- 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: