Patchwork [1,of,5,RFC] patchbomb: make variable name for publicurl always be publicurl

login
register
mail settings
Submitter Augie Fackler
Date June 13, 2017, 10:12 p.m.
Message ID <08a51970530c7a55f6da.1497391956@augie-macbookpro2.roam.corp.google.com>
Download mbox | patch
Permalink /patch/21362/
State Accepted
Headers show

Comments

Augie Fackler - June 13, 2017, 10:12 p.m.
# HG changeset patch
# User Augie Fackler <augie@google.com>
# Date 1497385811 14400
#      Tue Jun 13 16:30:11 2017 -0400
# Node ID 08a51970530c7a55f6dada59cb82a2e4416ea05e
# Parent  9b7d615108d77d885d54a6b8709419485dfc8cbd
patchbomb: make variable name for publicurl always be publicurl

Patch

diff --git a/hgext/patchbomb.py b/hgext/patchbomb.py
--- a/hgext/patchbomb.py
+++ b/hgext/patchbomb.py
@@ -112,10 +112,10 @@  def _addpullheader(seq, ctx):
     # experimental config: patchbomb.publicurl
     # waiting for some logic that check that the changeset are available on the
     # destination before patchbombing anything.
-    pullurl = repo.ui.config('patchbomb', 'publicurl')
-    if pullurl is not None:
+    publicurl = repo.ui.config('patchbomb', 'publicurl')
+    if publicurl is not None:
         return ('Available At %s\n'
-                '#              hg pull %s -r %s' % (pullurl, pullurl, ctx))
+                '#              hg pull %s -r %s' % (publicurl, publicurl, ctx))
     return None
 
 def uisetup(ui):