Feature Request: more svn info
From: Rob Hubbard <Rob.Hubbard_at_celoxica.com>
Date: 2006-10-06 17:35:41 CEST
Hello,
The information fed back by svn info is very useful for use in scripts.
(1) Single info replies
I would really like to be able to have svn info be capable of replying with just a single piece of information. I'm not sure what the syntax should be, but perhaps something like
svn info . --just "Revision"
This would be very useful in, for example, simple bash scripts, or even just on the command line, within `back-ticks`.
I suppose this could be done in, for example, a Python wrapper script or bash function, but it would be better if svn could do this directly.
(2) URL and Path fragments
When writing svn or svnlook-based scripts, I have often had to hard code information about where the location of the repository ends and the path within the repository begins.
[And perhaps there is a simple method that I have overlooked.]
Thus some mechanism for splitting such paths would be useful. For example, options such as:
The minimum, I suppose, would be a method of obtaining the URL to the repository (from svn info) or the path to the repository (from svnlook info).
Thanks,
_____________________________________________________________________
This email and any files transmitted with it are confidential and
---------------------------------------------------------------------
|
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.