Mercurial > hg-stable
changeset 37144:eb4a23382e18
locate: avoid using "rev" variable name for nodeid
Also, drop silly "ctx = repo[ctx.node()]".
Differential Revision: https://phab.mercurial-scm.org/D2961
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Wed, 28 Mar 2018 15:30:09 -0700 |
parents | 1d56c539794e |
children | bb141aa54728 |
files | mercurial/commands.py |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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)