# HG changeset patch # User Martin von Zweigbergk # Date 1522276209 25200 # Node ID eb4a23382e18ee662d513b91342e31b076b54d93 # Parent 1d56c539794e7e0bef4eb9bb27cf85d9dc8ba887 locate: avoid using "rev" variable name for nodeid Also, drop silly "ctx = repo[ctx.node()]". Differential Revision: https://phab.mercurial-scm.org/D2961 diff -r 1d56c539794e -r eb4a23382e18 mercurial/commands.py --- a/mercurial/commands.py Wed Mar 28 22:06:47 2018 +0900 +++ b/mercurial/commands.py Wed Mar 28 15:30:09 2018 -0700 @@ -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)