[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

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:
        --url-to-repository
        --path-within-repository
and perhaps also
        --scheme
        --directory
        --filename

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,
Rob.

_____________________________________________________________________
This message has been checked for all known viruses by the MessageLabs Virus Scanning Service, on behalf of Celoxica Ltd.

This email and any files transmitted with it are confidential and
may be legally privileged. It is intended solely for the use of the
individual or entity to whom it is addressed. If you have received
this in error, please contact the sender and delete the material
immediately. Whilst this email has been swept for viruses, you
should carry out your own virus check before opening any
attachment. Celoxica Ltd accepts no liability for any loss or
damage which may be caused by software viruses or interception
or interruption of this email.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Oct 6 17:36:52 2006

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.