[ 
https://issues.apache.org/jira/browse/SVN-4530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16666219#comment-16666219
 ] 

Branko Čibej edited comment on SVN-4530 at 10/27/18 9:04 PM:
-------------------------------------------------------------

The target of a copy cannot have a peg revision, so a trailing {{@}} is 
considered part of the file name. This may be a bit confusing but it's 
perfectly logical ...

The _source_ of the copy can have a peg revision, so you should always add the 
trailing {{@}} if there's already one in the file name. Your command line 
should look like this:
{noformat}
svn copy ...\sdf\@old.txt@ ...\sdf\@new.txt
{noformat}

I don't understand the 4th case, where {{...\sdf\@new.txt}} is converted to 
{{...\[email protected]}}. There may be some shell escaping going on here, but it 
shouldn't happen with {{cmd.exe}} as far as I know. You could try using forward 
slashes in the paths.


was (Author: brane):
Note: the target of a copy cannot have a peg revision, so a trailing {{@}} is 
considered part of the file name. This may be a bit confusing but it's 
perfectly logical ...

I don't understand the 4th case, where {{...\sdf\@new.txt}} is converted to 
{{...\[email protected]}}. There may be some shell escaping going on here, but it 
shouldn't happen with {{cmd.exe}} as far as I know.

> move file with @ character (adds new @ at the end)
> --------------------------------------------------
>
>                 Key: SVN-4530
>                 URL: https://issues.apache.org/jira/browse/SVN-4530
>             Project: Subversion
>          Issue Type: Bug
>          Components: unknown
>    Affects Versions: 1.8.x
>         Environment: Windows 7
>            Reporter: Subversion Importer
>            Priority: Major
>             Fix For: ---
>
>
> {noformat:nopanel=true}
> according to this: 
> http://svnbook.red-bean.com/en/1.5/svn.advanced.pegrevs.html
> I added a @-sign at the end of my path (and it works for commands like add, 
> info, ...)
> but when I want to move/rename a file it doesn't work:
> (copied from windows cmd:)
> --- @ character added for source and destination ---
> C:\Temp_Workspace\migration\work>svn mv 
> "C:\Temp_Workspace\migration\work\sdf\@old.txt@" 
> "C:\Temp_Workspace\migration\work\sdf\@new.txt@"
> A         sdf\@new.txt@  <---- why is here a @-sign at the end?
> D         sdf\@old.txt
> C:\Temp_Workspace\migration\work>svn mv 
> "C:\Temp_Workspace\migration\work\sdf\[email protected]@" 
> "C:\Temp_Workspace\migration\work\sdf\[email protected]@"
> A         sdf\[email protected]@  <---- why is here a @-sign at the end?
> D         sdf\[email protected]
> --- @ character added for source ---
> C:\Temp_Workspace\migration\work>svn mv 
> "C:\Temp_Workspace\migration\work\sdf\[email protected]@" 
> "C:\Temp_Workspace\migration\work\sdf\[email protected]"
> A         sdf\[email protected]  <---- worked!
> D         sdf\[email protected]
> C:\Temp_Workspace\migration\work>svn mv 
> "C:\Temp_Workspace\migration\work\sdf\@old.txt@" 
> "C:\Temp_Workspace\migration\work\sdf\@new.txt"
> A         [email protected]  <---- why is it moved to the parent directory?
> D         sdf\@old.txt
> --- @ character added for destination ---
> C:\Temp_Workspace\migration\work>svn mv 
> "C:\Temp_Workspace\migration\work\sdf\@old.txt" 
> "C:\Temp_Workspace\migration\work\sdf\@new.txt"
> svn: E200009: 'C:/Temp_Workspace/migration/work/[email protected]': a peg revision 
> isnot allowed here
> C:\Temp_Workspace\migration\work>svn mv 
> "C:\Temp_Workspace\migration\work\sdf\[email protected]" 
> "C:\Temp_Workspace\migration\work\sdf\[email protected]"
> svn: E200009: 'C:/Temp_Workspace/migration/work/sdf/[email protected]': a peg 
> revision is not allowed here
> I'm not sure, if this is a bug. (or a feature :) )
> but I've done everything possible I know.. and I can't solve it.
> maybe you can resolve it.
> thanks for your help
> {noformat}
> Original issue reported by *54mu3l*



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to