debugsetparents: remove redundant invocations of begin/endparentchange
authorliscju <piotr.listkiewicz@gmail.com>
Mon, 28 Mar 2016 09:12:03 +0200
changeset 28654 5474dc73680f
parent 28653 1eb0bd8adf39
child 28655 0e330d7d9f53
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.
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')),