kill: properly get revision pointed by --new
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Tue, 20 Mar 2012 10:38:38 +0100
changeset 147 b0b23d9eede5
parent 146 e80a6c8ad452
child 148 8e93e1f67205
kill: properly get revision pointed by --new Previously the raw value on --new ended in the obsolete file.
hgext/evolve.py
--- a/hgext/evolve.py	Tue Mar 13 12:00:40 2012 +0100
+++ b/hgext/evolve.py	Tue Mar 20 10:38:38 2012 +0100
@@ -294,7 +294,7 @@
     """
     wlock = repo.wlock()
     try:
-        new = opts['new']
+        new = set(noderange(repo, opts['new']))
         targetnodes = set(noderange(repo, revs))
         if not new:
             new = [node.nullid]