Is there a command which will print the path of the file in the repo-browser in the command line?
SVN diff only prints the file name.
Thank you.
svn info path/to/filename
will show you several pieces of information. The ones you're looking for are URL and Repository Root:
$ svn info mydialog.h
[...]
URL: http://svn.server.net/my-repo/trunk/ui/mydialog.h
Repository Root: http://svn.server.net/my-repo
[...]
URL is the absolute position of the file, and Repository Root is the base URL of the repository. URL will always start with the address of Repository Root, so if you trim Repository Root from the start of URL, you're left with the relative position of the file inside the repository. In this case, that's
/trunk/ui/mydialog.h
svn info
?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With