changeset 28654:5474dc73680f

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.
author liscju <piotr.listkiewicz@gmail.com>
date Mon, 28 Mar 2016 09:12:03 +0200
parents 1eb0bd8adf39
children 0e330d7d9f53
files mercurial/commands.py
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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')),