##// END OF EJS Templates
backout: deprecate/hide support for backing out merges...
Matt Mackall -
r15211:1209de02 default
parent child Browse files
Show More
@@ -364,7 +364,8 b' def archive(ui, repo, dest, **opts):'
364
364
365 @command('backout',
365 @command('backout',
366 [('', 'merge', None, _('merge with old dirstate parent after backout')),
366 [('', 'merge', None, _('merge with old dirstate parent after backout')),
367 ('', 'parent', '', _('parent to choose when backing out merge'), _('REV')),
367 ('', 'parent', '',
368 _('parent to choose when backing out merge (DEPRECATED)'), _('REV')),
368 ('r', 'rev', '', _('revision to backout'), _('REV')),
369 ('r', 'rev', '', _('revision to backout'), _('REV')),
369 ] + mergetoolopts + walkopts + commitopts + commitopts2,
370 ] + mergetoolopts + walkopts + commitopts + commitopts2,
370 _('[OPTION]... [-r] REV'))
371 _('[OPTION]... [-r] REV'))
@@ -424,8 +425,7 b' def backout(ui, repo, node=None, rev=Non'
424 raise util.Abort(_('cannot backout a change with no parents'))
425 raise util.Abort(_('cannot backout a change with no parents'))
425 if p2 != nullid:
426 if p2 != nullid:
426 if not opts.get('parent'):
427 if not opts.get('parent'):
427 raise util.Abort(_('cannot backout a merge changeset without '
428 raise util.Abort(_('cannot backout a merge changeset'))
428 '--parent'))
429 p = repo.lookup(opts['parent'])
429 p = repo.lookup(opts['parent'])
430 if p not in (p1, p2):
430 if p not in (p1, p2):
431 raise util.Abort(_('%s is not a parent of %s') %
431 raise util.Abort(_('%s is not a parent of %s') %
@@ -182,7 +182,7 b' with --merge'
182 backout of merge should fail
182 backout of merge should fail
183
183
184 $ hg backout 4
184 $ hg backout 4
185 abort: cannot backout a merge changeset without --parent
185 abort: cannot backout a merge changeset
186 [255]
186 [255]
187
187
188 backout of merge with bad parent should fail
188 backout of merge with bad parent should fail
General Comments 0
You need to be logged in to leave comments. Login now