comparison hgext/evolve.py @ 272:78d01e341438

evolve: add alias for kill and stabilize
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Mon, 18 Jun 2012 12:11:06 +0200
parents 6c6bb7a23bb5
children 88a851a54f26
comparison
equal deleted inserted replaced
271:04823ea70d15 272:78d01e341438
217 ### new command 217 ### new command
218 ############################# 218 #############################
219 cmdtable = {} 219 cmdtable = {}
220 command = cmdutil.command(cmdtable) 220 command = cmdutil.command(cmdtable)
221 221
222 @command('^stabilize', 222 @command('^stabilize|evolve',
223 [ 223 [
224 ('n', 'dry-run', False, 'Do nothing but printing what should be done'), 224 ('n', 'dry-run', False, 'Do nothing but printing what should be done'),
225 ('A', 'any', False, 'Stabilize unstable change on any topological branch'), 225 ('A', 'any', False, 'Stabilize unstable change on any topological branch'),
226 ], 226 ],
227 '') 227 '')
339 displayer.show(c) 339 displayer.show(c)
340 ui.warn(_('Multiple non-obsolete children, explicitly update to one\n')) 340 ui.warn(_('Multiple non-obsolete children, explicitly update to one\n'))
341 return 1 341 return 1
342 342
343 343
344 @command('^kill', 344 @command('^kill|obsolete',
345 [ 345 [
346 ('n', 'new', [], _("New changeset that justify this one to be killed")) 346 ('n', 'new', [], _("New changeset that justify this one to be killed"))
347 ], 347 ],
348 '<revs>') 348 '<revs>')
349 def kill(ui, repo, *revs, **opts): 349 def kill(ui, repo, *revs, **opts):