cleanup: use slightly more meaningful name for temporary variable
authorManuel Jacob <me@manueljacob.de>
Thu, 02 Jul 2020 02:51:09 +0200
changeset 45037 0c40d2d151cb
parent 45036 c05ac059749f
child 45038 c7d109c400a4
cleanup: use slightly more meaningful name for temporary variable Not that it makes a big difference, but using `p` instead of `x` is clearer to me.
mercurial/cmdutil.py
--- a/mercurial/cmdutil.py	Thu Jul 02 02:46:15 2020 +0200
+++ b/mercurial/cmdutil.py	Thu Jul 02 02:51:09 2020 +0200
@@ -3438,7 +3438,7 @@
         and bheads
         and node not in bheads
         and not any(
-            x.node() in bheads and x.branch() == branch for x in parents
+            p.node() in bheads and p.branch() == branch for p in parents
         )
     ):
         repo.ui.status(_(b'created new head\n'))