Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Re: COPY command creating duplicates

Project highlights: :. Download .: :. Support .: :. FAQ .: :. Translations .: :. Donate .: :. Report Bug .:

tortoisesvn
Discussion topic

Back to topic list

Re: COPY command creating duplicates

Author siddharth Goel <sidd456goel at gmail dot com>
Full name siddharth Goel <sidd456goel at gmail dot com>
Date 2017-01-17 04:14:57 PST
Message Hi Stefan,

Is their a command to check whether a particular path/folder say
/yyy/zzz/src already exists or not?

Actually to decide whether to pass /makeparents or not, I need to be
able to detect whether the path already exists.

Thanks and Regards
Siddharth Goel
Mob No - 9953166161


On Sun, Jan 8, 2017 at 2:36 PM, Stefan Küng <tortoisesvn at gmail dot com> wrote:
> 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.t​igris.org/ds/viewMes​sage.do?dsForumId=75​7&dsMessageId=31​99556
>
> To unsubscribe from this discussion, e-mail: [dev-unsubscribe@tor​toisesvn.tigris.org]​.

« Previous message in topic | 3 of 3 | Next message in topic »

Messages

Show all messages in topic

COPY command creating duplicates siddharth Goel <sidd456goel at gmail dot com> siddharth Goel <sidd456goel at gmail dot com> 2017-01-07 09:43:15 PST
     Re: COPY command creating duplicates steveking Stefan Küng 2017-01-08 11:36:19 PST
         Re: COPY command creating duplicates siddharth Goel <sidd456goel at gmail dot com> siddharth Goel <sidd456goel at gmail dot com> 2017-01-17 04:14:57 PST
Messages per page: