Patchwork D2962: tag: avoid using "r" variable name for nodeid

login
register
mail settings
Submitter phabricator
Date March 28, 2018, 11:25 p.m.
Message ID <5255d56fa13025997081aa82f7473ec8@localhost.localdomain>
Download mbox | patch
Permalink /patch/29929/
State Not Applicable
Headers show

Comments

phabricator - March 28, 2018, 11:25 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGbb141aa54728: tag: avoid using &quot;r&quot; variable name for nodeid (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2962?vs=7354&id=7357

REVISION DETAIL
  https://phab.mercurial-scm.org/D2962

AFFECTED FILES
  mercurial/commands.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -5314,12 +5314,12 @@ 
             if not opts.get('force') and bheads and p1 not in bheads:
                 raise error.Abort(_('working directory is not at a branch head '
                                     '(use -f to force)'))
-        r = scmutil.revsingle(repo, rev_).node()
+        node = scmutil.revsingle(repo, rev_).node()
 
         if not message:
             # we don't translate commit messages
             message = ('Added tag %s for changeset %s' %
-                       (', '.join(names), short(r)))
+                       (', '.join(names), short(node)))
 
         date = opts.get('date')
         if date:
@@ -5337,7 +5337,7 @@ 
             scmutil.revsingle(repo, rev_).rev() == nullrev):
             raise error.Abort(_("cannot tag null revision"))
 
-        tagsmod.tag(repo, names, r, message, opts.get('local'),
+        tagsmod.tag(repo, names, node, message, opts.get('local'),
                     opts.get('user'), date, editor=editor)
     finally:
         release(lock, wlock)