On 2. 2. 25 13:28, Stefan Sperling wrote:
On Sun, Feb 02, 2025 at 03:12:40AM +0100, Branko Čibej wrote:
On 8. 1. 25 13:52, Daniel Sahlberg wrote:
I believe the reason was to "display names in human readable format",
rather than to actually do local processing. Since this is only an issue
when there is no WC, I was assuming they used it to check for example
other branches than the current branch.
We already have svn info URL --show-item, the only thing missing in order to
display user-friendly names (only) is --show-item=path.
This doesn't help when a path relative to some directory in the repository
(such as ^/trunk) is needed. The Path item seems to always show the last
component of the provided URL. Any intermediate directories are lost.

Yes. But everything else are URLs; for 'svn info URL', Path is the only thing that's returned in a user-friendly format. One could argue that it should be called Name, not Path, and that Path should be the whole user-friendly relative path from the root; but it is what it is now. At least you can get the relative URL, too.

I agree it's not ideal. *shrug*. I'd rather look at proposals to expand 'svn info (--show-item)' than to break the 'svn diff --summarize' output format.

-- Brane

Reply via email to