diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -3502,9 +3502,7 @@ def debugsetparents(ui, repo, rev1, rev2 r2 = scmutil.revsingle(repo, rev2, 'null').node() with repo.wlock(): - repo.dirstate.beginparentchange() repo.setparents(r1, r2) - repo.dirstate.endparentchange() @command('debugdirstate|debugstate', [('', 'nodates', None, _('do not display the saved mtime')),