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

Re: COPY command creating duplicates

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Sun, 8 Jan 2017 20:36:26 +0100

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: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2017-01-08 20:36:33 CET

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.