Mercurial > public > mercurial-scm > hg
comparison mercurial/cmdutil.py @ 45037:0c40d2d151cb
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.
author | Manuel Jacob <me@manueljacob.de> |
---|---|
date | Thu, 02 Jul 2020 02:51:09 +0200 |
parents | c05ac059749f |
children | a56ba57c837d |
comparison
equal
deleted
inserted
replaced
45036:c05ac059749f | 45037:0c40d2d151cb |
---|---|
3436 if ( | 3436 if ( |
3437 not opts.get(b'amend') | 3437 not opts.get(b'amend') |
3438 and bheads | 3438 and bheads |
3439 and node not in bheads | 3439 and node not in bheads |
3440 and not any( | 3440 and not any( |
3441 x.node() in bheads and x.branch() == branch for x in parents | 3441 p.node() in bheads and p.branch() == branch for p in parents |
3442 ) | 3442 ) |
3443 ): | 3443 ): |
3444 repo.ui.status(_(b'created new head\n')) | 3444 repo.ui.status(_(b'created new head\n')) |
3445 # The message is not printed for initial roots. For the other | 3445 # The message is not printed for initial roots. For the other |
3446 # changesets, it is printed in the following situations: | 3446 # changesets, it is printed in the following situations: |