Ticket #229 (closed defect: fixed)
Build properties "revision" and "got_revision" not populated for P4
| Reported by: | tonnis | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | undecided |
| Version: | 0.7.7 | Keywords: | P4 BuildProperties revision got_revision |
| Cc: |
Description
It seems that the Build properties "revision" and "got_revision" are not populated for P4 (Perforce). I am not super Python, nor buildbot literate, but I cannot find where the "revision" property is populated onto the build instance by SourceBase? or *any* of its descendant classes, and it is not being populated when I use ...WithProperties?("%(revision)s") for ShellCommands? executed after the P4 Step. (The missing "got_revision" is also mentioned in Bug #127)
Attachments
Change History
Changed 4 years ago by tonnis
-
attachment
commands.py-diff
added
comment:1 Changed 4 years ago by tonnis
Here is a patch that does the right thing for got_revision. It follows the pattern used in the Subversion adapter by making a subsequent ShellCommand? via the callback used by parseGotRevision. This output of the command is parsed to get the revision (Change List) number.
'This patch applies to the 0.7.7 version sources. The drop down on this Ticket does not list 0.7.7 as an option.'
comment:2 Changed 4 years ago by warner
- Version changed from 0.7.6 to 0.7.7
seems reasonable. what sort of test coverage could we manage on this? let's take a look at test_vc.py and see if it does any sorts of checks on got_revision.
comment:3 Changed 3 years ago by dustin
- Status changed from new to closed
- Resolution set to fixed
committed (in modified form) as a patch by jgraff: http://github.com/jgraff/buildbot/commit/ab61561c9bc98d69b64db2b3bdb5c05dce969264
![[Buildbot Logo]](/chrome/site/header-text-transparent.png)
Patch (diff) for buildbot/slave/commands.py