[Buildbot-commits] [Buildbot] #2165: Support ternary substitution in WithProperties

Buildbot nobody at buildbot.net
Mon Dec 19 05:15:41 UTC 2011


#2165: Support ternary substitution in WithProperties
------------------------+--------------------
Reporter:  jaredgrubb   |       Owner:
    Type:  enhancement  |      Status:  new
Priority:  minor        |   Milestone:  0.8.+
 Version:  0.8.5        |  Resolution:
Keywords:               |
------------------------+--------------------

Comment (by jaredgrubb):

 The regex comment was that this could easily be implemented in regex like
 the others since Python supports back-references.

 As for the existence vs trueness distinction, one idea I had was to borrow
 "#" from printf's "alternate format" modifier. So:
 * ":?" means if prop exists
 * ":#?" means if prop is true
 And then another idea is that you could add ":#+" as an alias for ":~"; I
 personally have trouble telling ~ and - apart in font.

 The other alternative is to just add another character: ":?" vs ":!".

 Any preferences?

 I could do this; it's a pretty easy patch.

-- 
Ticket URL: <http://trac.buildbot.net/ticket/2165#comment:2>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the Commits mailing list