##// END OF EJS Templates
patchbomb: look for non-empty publicurl, not a non-None one...
Augie Fackler -
r32825:16ff5c60 default
parent child Browse files
Show More
@@ -113,7 +113,7 b' def _addpullheader(seq, ctx):'
113 # waiting for some logic that check that the changeset are available on the
113 # waiting for some logic that check that the changeset are available on the
114 # destination before patchbombing anything.
114 # destination before patchbombing anything.
115 publicurl = repo.ui.config('patchbomb', 'publicurl')
115 publicurl = repo.ui.config('patchbomb', 'publicurl')
116 if publicurl is not None:
116 if publicurl:
117 return ('Available At %s\n'
117 return ('Available At %s\n'
118 '# hg pull %s -r %s' % (publicurl, publicurl, ctx))
118 '# hg pull %s -r %s' % (publicurl, publicurl, ctx))
119 return None
119 return None
@@ -588,7 +588,7 b' def email(ui, repo, *revs, **opts):'
588
588
589 # check if revision exist on the public destination
589 # check if revision exist on the public destination
590 publicurl = repo.ui.config('patchbomb', 'publicurl')
590 publicurl = repo.ui.config('patchbomb', 'publicurl')
591 if publicurl is not None:
591 if publicurl:
592 repo.ui.debug('checking that revision exist in the public repo')
592 repo.ui.debug('checking that revision exist in the public repo')
593 try:
593 try:
594 publicpeer = hg.peer(repo, {}, publicurl)
594 publicpeer = hg.peer(repo, {}, publicurl)
General Comments 0
You need to be logged in to leave comments. Login now