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.
--- 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')),