Mercurial > public > mercurial-scm > hg
diff mercurial/commands.py @ 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 | 4acd5651ffa2 |
children | ae53ecc47414 |
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')),