1678 opts = pycompat.byteskwargs(opts) |
1678 opts = pycompat.byteskwargs(opts) |
1679 fm = ui.formatter('histedit', opts) |
1679 fm = ui.formatter('histedit', opts) |
1680 fm.startitem() |
1680 fm.startitem() |
1681 goal = _getgoal(opts) |
1681 goal = _getgoal(opts) |
1682 revs = opts.get('rev', []) |
1682 revs = opts.get('rev', []) |
1683 # experimental config: ui.history-editing-backup |
1683 # experimental config: rewrite.backup-bundle |
1684 nobackup = not ui.configbool('ui', 'history-editing-backup') |
1684 nobackup = not ui.configbool('rewrite', 'backup-bundle') |
1685 rules = opts.get('commands', '') |
1685 rules = opts.get('commands', '') |
1686 state.keep = opts.get('keep', False) |
1686 state.keep = opts.get('keep', False) |
1687 |
1687 |
1688 _validateargs(ui, repo, state, freeargs, opts, goal, rules, revs) |
1688 _validateargs(ui, repo, state, freeargs, opts, goal, rules, revs) |
1689 |
1689 |