NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use
trunk.foswiki.org to view this page for some minimal testing.
Use
Item11383 for general documentation changes for release 1.1.5. Use
Item9693 for docu changes for release 2.0.
Item9238: Add %REPO macro in Repository Plugin
| Priority: |
CurrentState: |
AppliesTo: |
Component: |
WaitingFor: |
| Enhancement |
Being Worked On |
Extension |
RepositoryPlugin? |
Main.GeorgeClark |
There is no easy way to see from a Running svn or git checkout what actual rev number is being tested.
Add a small Plugin to
BuildContrib lib/Foswiki/Plugins/BuildContribPlugin.pm It will implement the %REPO macro to query the git or svn repository:
- REPO{"lastlog"} Report log from most recent commit
- REPO{"rev"} Pull the "Revision" field from
git svn info or svn info command
- REPO{"isodate"} Report the date/timestamp from the repository in iso format
- REPO{"lastauthor"} Report the Author of the most recent commit
Another option might be to pull the
info and
log data into tokens for use in a format string.
- REPO{"info" format="$isodate, $rev, $lastauthor, $lastrev, $root, $uuid"}
- REPO{"log" number="n"} - report the last n log messages, default = 1
Any other requests, objections or suggestions?
--
GeorgeClark - 02 Jul 2010
Sounds good, as discussed on IRC - although a small part of me is thinking that this might be less useful than I think, particularly when testing in
mod_perl environments.
I wouldn't be too fussed about formatting tokens, although it would be nice.
Really need to get
BuildContrib to work happily from a git checkout during build :/
--
PaulHarvey - 02 Jul 2010
I changed status to "Being worked on" because it needs a specific name in Waiting for Feedback. This is interesting, though I don't think I'd find it that useful. Because my test runs are almost always preceded by an svn update, I have a good idea what rev I'm testing.
Changed from Normal to Enhancement
--
CrawfordCurrie - 28 Aug 2010
Changing this to a separate extension -
RepositoryPlugin? .
--
GeorgeClark - 03 Jan 2011