#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
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Buildbot-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/buildbot-commits

Reply via email to