Mercurial > hg
changeset 50848:eb23eada6550
rename: drop an unnecessary variable declaration at a wider scope
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sun, 20 Aug 2023 01:56:23 -0400 |
parents | 6720894996f2 |
children | fdf97ae05165 |
files | mercurial/commands.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Sun Aug 20 01:54:59 2023 -0400 +++ b/mercurial/commands.py Sun Aug 20 01:56:23 2023 -0400 @@ -6034,7 +6034,7 @@ """ context = lambda repo: repo.dirstate.changing_files(repo) rev = opts.get('at_rev') - ctx = None + if rev: ctx = logcmdutil.revsingle(repo, rev) if ctx.rev() is not None: