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

Re: Deduce the server URL from the current directory inside the working copy

From: Daniel Widenfalk <Daniel.Widenfalk_at_iar.com>
Date: Thu, 21 Dec 2017 14:21:26 +0100

On 2017-12-21 12:57, Anton Shepelev wrote:
> Hello, all
>
> I find it mildly annoying to type the full path
> within a repository for server-side file operations,
> such as 'delete' and 'copy'. Observe that, being on
> Windows, I must use quotes in order to escape the
> caret character:
>
> svn rm "^/A/B/C/file.txt"
>
> Is there a way to avoid the entry of the full path
> when invoking this command from A/B/C/ in a working
> copy? In other words, I should like to have some
> syntax that told SVN to use the full sever-side path
> of a file using the current directory within a work-
> ing copy. For example, instead of writing:
>
> svn rm "^/A/B/C/file.txt"
>
> I could:
>
> cd Work/A/B/C
> svn rm "^^file.txt"

Hi,

On Windows you'd use a double-carret to quote it, i.e:

$ svn rm -m "fancy message goes here" ^^/A/B/C/file.txt

Could you explain why you'd want to do a server-side operation
on something which is locally accessible? I.e. why not do?

$ cd A/B/C
$ svn rm file.txt
$ svn commit -m "Another fancy message"

/D

-- 
             |\      _,,,---,,_
      ZZZzz /,`.-'`'    -.  ;-;;,_
           |,4-  ) )-,_. ,\ (  `'-'
---------'---''(_/--'--`-'\_)---------------------------------
Received on 2017-12-21 14:21:39 CET

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.