D2963: debugsetparents: avoid using "r1/r2" variable names for nodeids
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Wed Mar 28 22:49:53 UTC 2018
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D2963
AFFECTED FILES
mercurial/debugcommands.py
CHANGE DETAILS
diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py
--- a/mercurial/debugcommands.py
+++ b/mercurial/debugcommands.py
@@ -2288,11 +2288,11 @@
Returns 0 on success.
"""
- r1 = scmutil.revsingle(repo, rev1).node()
- r2 = scmutil.revsingle(repo, rev2, 'null').node()
+ node1 = scmutil.revsingle(repo, rev1).node()
+ node2 = scmutil.revsingle(repo, rev2, 'null').node()
with repo.wlock():
- repo.setparents(r1, r2)
+ repo.setparents(node1, node2)
@command('debugssl', [], '[SOURCE]', optionalrepo=True)
def debugssl(ui, repo, source=None, **opts):
To: martinvonz, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list