changeset 28794 | 2637d6ad3e61 |
parent 28669 | c4b727795d6a |
child 28795 | f456834b2f7e |
--- a/mercurial/commands.py Tue Apr 05 18:10:33 2016 +0100 +++ b/mercurial/commands.py Fri Apr 01 15:20:31 2016 -0700 @@ -3095,6 +3095,9 @@ finally: l.release() else: + if opts.get('rev') and opts.get('index'): + hint = _("call 'hg debugobsolete --index' without other arguments") + raise error.Abort(_("cannot use --index with --rev"), hint=hint) if opts['rev']: revs = scmutil.revrange(repo, opts['rev']) nodes = [repo[r].node() for r in revs]