phing: get last commit ID (revision) and use it as a phing attribute

Posted by Jorre on Stack Overflow See other posts from Stack Overflow or by Jorre
Published on 2010-06-01T09:22:01Z Indexed on 2010/06/01 9:23 UTC
Read the original article Hit count: 309

Filed under:
|
|
|

I'm trying to get the latest revision ID from my SVN project using Phing. What I'm trying to do is the following:

  • get latest revision/commit number from svn
  • store this revision number as an attribute (so that I can use this to append it to the archive I'm
    already creating using phing)

I don't have a working copy on my server where phing is running, so I cannot use the Phing SvnLastRevisionTask.

© Stack Overflow or respective owner

Related posts about svn

Related posts about deployment