# HG changeset patch # User Durham Goode # Date 2015-03-11 14:19:55 # Node ID 365fdbc54f1f8b8204136e508930f143bbd834c9 # Parent c14b1d349af31f603ffae99613f0d994cf0d8633 histedit: remove extra histedit constructor call In a previous commit we removed the extra histedit object instance being constructed in --continue and --abort. The new --edit-todo missed this fix though (which means the state object it produces doesn't have the locks on it). It's not breaking anything now, but let's go ahead and clean that up before we forget. diff --git a/hgext/histedit.py b/hgext/histedit.py --- a/hgext/histedit.py +++ b/hgext/histedit.py @@ -616,7 +616,6 @@ def _histedit(ui, repo, state, *freeargs state.read() state = bootstrapcontinue(ui, state, opts) elif goal == 'edit-plan': - state = histeditstate(repo) state.read() if not rules: comment = editcomment % (state.parentctx, node.short(state.topmost))