# HG changeset patch # User liscju # Date 1459149123 -7200 # Node ID 5474dc73680f96e79ae3c255fb01b7943b2fc2d1 # Parent 1eb0bd8adf39ce0506fb4209e001a3b13d9c4419 debugsetparents: remove redundant invocations of begin/endparentchange Method localrepo.setparents invokes begin/endparentchange internally, so there is no need to invoke it explicitly in debugsetparents. diff -r 1eb0bd8adf39 -r 5474dc73680f mercurial/commands.py --- a/mercurial/commands.py Sun Mar 27 13:13:19 2016 -0700 +++ b/mercurial/commands.py Mon Mar 28 09:12:03 2016 +0200 @@ -3502,9 +3502,7 @@ 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')),