[Buildbot-commits] [Buildbot] #2180: Allow for "git describe" in addition to got_revision

Buildbot nobody at buildbot.net
Fri Mar 16 17:19:42 UTC 2012


#2180: Allow for "git describe" in addition to got_revision
----------------------------+------------------------
Reporter:  jaredgrubb       |       Owner:
    Type:  enhancement      |      Status:  closed
Priority:  minor            |   Milestone:  undecided
 Version:  0.8.5            |  Resolution:  wontfix
Keywords:  git, buildslave  |
----------------------------+------------------------

Comment (by jaredgrubb):

 I have a patch ready for this. What I've implemented is an new param to
 Git which will do a 'git describe' after the 'git rev-parse' step.

 * Git(..., getDescription=True) => "git describe HEAD"
 * Git(..., getDescription={'match': 'foo-*'})  =>  "git describe --match
 foo-* HEAD"
 * Git(..., getDescription={'tags': True, 'exact-match': True}) => "git
 describe --tags --exact-match HEAD"
 * Git(..., getDescription={'match': 'foo-*', 'abbrev': 0}) => "git
 describe --match foo-* --abbrev=0 HEAD"

 The description is then added to the property 'got_description', which is
 a dict keyed by codebase. I figure since this is a 0.8.7 feature, if
 people want to use it, then keying by codebase (or using the default
 codebase='') is a reasonable expectation.

 If you dont mind this approach, I'll do a pull request.

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


More information about the Commits mailing list