locate: avoid using "rev" variable name for nodeid
Also, drop silly "ctx = repo[ctx.node()]".
Differential Revision: https://phab.mercurial-scm.org/D2961
--- 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)