[Buildbot-commits] [Buildbot] #1011: Add $(property:~replacement) syntax that turns anything false into replacement, too
Buildbot
buildbot-devel at lists.sourceforge.net
Thu Oct 14 15:19:29 UTC 2010
#1011: Add $(property:~replacement) syntax that turns anything false into
replacement, too
------------------------+---------------------------------------------------
Reporter: dustin | Owner: dustin
Type: enhancement | Status: new
Priority: major | Milestone: 0.8.2
Version: 0.8.1 | Keywords:
------------------------+---------------------------------------------------
Changes (by moschny):
* cc: thomas.moschny@… (added)
Comment:
Replying to [ticket:1011 dustin]:
> There are lots of places that properties are None, rather than missing.
In these cases, the !WithProperties %(property:-replacement)s syntax will
return "None", rather than "replacement".
It will in fact return `''`, not `'None'`, with latest devel revision.
> Rather than alter the behavior of an existing feature, I think we should
add another syntax, {{{:~}}}, that will turn anything false into the
replacement.
Agreed. (Although it's different from what shells do.)
--
Ticket URL: <http://buildbot.net/trac/ticket/1011#comment:2>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation
More information about the Commits
mailing list