Re: COPY command creating duplicates

Stefan Küng <[email protected]>
Newsgroups gmane.comp.version-control.subversion.tortoisesvn.devel
Message-ID <[email protected]>
On 07.01.2017 18:43, siddharth Goel wrote:
> I am using Version 1.9.5 Build 27038. On executing the below command
> twice to copy SRC folder from trunk to my local Dev folder :-
>
> *TortoiseProc.exe /command:copy /path:https://example.com/svn/trunk/SRC
> /makeparents /url:https://example.com/svn/DEV/SID/SRC*
>
> In first run it's creating the required intermediate folders and coping
> the contents of SRC fine as expected.
>
> But in second run it must give me a error that the folder already exists
> instead it created another folder named SRC in my SRC folder and copying
> the contents again thus creating duplicates.
>
> If I run command third time, it gives error 'folder already exists'
> which it should have given in the second run itself.
>
> I have made a Tool to automate some of the TSVN work and these
> duplicates are creating unnecessary confusion. Can I do something to
> avoid it? Is this a Setting issue or a bug?

this is how it's supposed to work.
if you create a copy from /xxx/src to /yyy/zzz/src with /makeparents 
active and either /yyy/ or /yyy/zzz/ does not exist, then svn knows that 
the target is /yyy/zzz/src.
But if both subfolders /yyy/zzz/src already exist, what should the copy 
do? It copies the /xxx/src folder to the target folder /yyy/zzz/src.
How would it know that your 'xxx/src' folder is the same (for you) as 
'yyy/zzz/src'? Just because the name 'src' is identical?

You must only specify /makeparents if the intermediate folders don't 
exist yet.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest interface to (Sub)version control
    /_/   \_\     http://tortoisesvn.net

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=3199556

To unsubscribe from this discussion, e-mail: [[email protected]].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.