Re: svn info --show-item [was: svn info --detail]
From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Wed, 25 Feb 2015 10:57:45 +0000
Branko Čibej wrote:
Currently it sees only the last --show-item option on the command line and ignores any others.
>> I don't know how this would work together with multple (or recursive)
> No, it doesn't support multiple --show-item options. There are a several
Actually, several options already support multiple instances: --with-revprop, --search, ...
Multiple items need not require multiple options anyway:
--show-item=last-changed-rev,last-changed-author
> * As you note, there are potential problems with the output format.
The output escaping/parsing issues are basically the same as for 'svn list -v' and 'svn status -v'. Here's a flexible possibility, shown by examples:
# similar to 'svn status -v'
# similar to 'svn ls -v'
But, while all that might be nice, the main aim of this feature was to have an easy way to answer questions such as:
'is this a trunk WC or a branch WC?'
$ svn info --show-item=relative-url .
'what is the URL of this working copy's repository?'
$ svn info --show-item=repos-root-url .
'what is the youngest revision in the repository?'
$ svn info --show-item=revision ^/
- Julian
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.