RE: Filtering svn info output
From: Georges Labrèche <glabreche_at_stream57.com>
Date: Mon, 15 Jun 2009 11:59:40 -0400
Hello,
In my case "| grep ^Revision" wouldn't work for the same reason why ">> output.txt" wouldn't work.
[svn] svn: Error resolving case of '|'
Even though the same operations work when inputted directly in the command prompt window.
Also, I can create an xml output but once again, because of NAnt I cannot write any output because of failure of the <svn /> or <exec /> tasks in resolving the case of '>>'. What I can do is use the <record /> task instead in which case it will write a malformed xml file because each line will begin with "[svn]"
Using the build script to do this is the answer. Through NAnt I can use regular expression to retrieve the information I need:
<!-- The svn command line that will be executed in order to retrieve the latest HEAD revision number-->
<arg line="${svn.info.command.line}" />
Thanks!
-----Original Message-----
On Mon, Jun 15, 2009 at 11:24:57AM -0400, Georges Labrèche wrote:
I think most people just do something like:
svn info | grep ^Revision
If this is already in a build script, just use your build script's
tyler
------------------------------------------------------
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.