[PATCH 1 of 5 RFC] patchbomb: make variable name for publicurl always be publicurl
Augie Fackler
raf at durin42.com
Tue Jun 13 22:12:36 UTC 2017
# HG changeset patch
# User Augie Fackler <augie at 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
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):
More information about the Mercurial-devel
mailing list