--- a/hgext/evolve.py Wed Jan 02 14:28:04 2013 +0100
+++ b/hgext/evolve.py Mon Dec 03 14:41:14 2012 +0100
@@ -1465,8 +1465,9 @@
return 1
@command('^prune|obsolete|kill',
- [('n', 'new', [], _("successor changeset"))],
- _('[OPTION] REV...'))
+ [('n', 'new', [], _("successor changeset")),
+ ('r', 'rev', [], _("revisions to fold"))],
+ _('[OPTION] [-r] REV...'))
def kill(ui, repo, *revs, **opts):
"""mark a changeset as obsolete
@@ -1477,6 +1478,8 @@
XXX handle merge
XXX check immutable first
"""
+ revs = list(revs)
+ revs.extend(opts['rev'])
wlock = repo.wlock()
try:
lock = repo.lock()
@@ -1818,7 +1821,7 @@
lockmod.release(lock, wlock)
@command('^fold',
- [('r', 'rev', [], 'revisions to fold'),
+ [('r', 'rev', [], _("revisions to fold")),
],
# allow to choose the seed ?
_('[-r] revs'))