rename: drop an unnecessary variable declaration at a wider scope
authorMatt Harbison <matt_harbison@yahoo.com>
Sun, 20 Aug 2023 01:56:23 -0400
changeset 50848 eb23eada6550
parent 50847 6720894996f2
child 50849 fdf97ae05165
rename: drop an unnecessary variable declaration at a wider scope
mercurial/commands.py
--- 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: