From patchwork Wed Mar 28 23:25:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D2961: locate: avoid using "rev" variable name for nodeid From: phabricator X-Patchwork-Id: 29928 Message-Id: <6028ab8a55ca91034b66b7fc4e8e1172@localhost.localdomain> To: mercurial-devel@mercurial-scm.org Date: Wed, 28 Mar 2018 23:25:30 +0000 This revision was automatically updated to reflect the committed changes. Closed by commit rHGeb4a23382e18: locate: avoid using "rev" variable name for nodeid (authored by martinvonz, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D2961?vs=7353&id=7356 REVISION DETAIL https://phab.mercurial-scm.org/D2961 AFFECTED FILES mercurial/commands.py CHANGE DETAILS To: martinvonz, #hg-reviewers, indygreg Cc: mercurial-devel diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -3258,10 +3258,9 @@ end = '\0' else: end = '\n' - rev = scmutil.revsingle(repo, opts.get('rev'), None).node() + ctx = scmutil.revsingle(repo, opts.get('rev'), None) ret = 1 - ctx = repo[rev] m = scmutil.match(ctx, pats, opts, default='relglob', badfn=lambda x, y: False)