Re: COPY command creating duplicates
siddharth Goel <[email protected]>
| Newsgroups | gmane.comp.version-control.subversion.tortoisesvn.devel |
|---|---|
| Message-ID | <CAC6g0StfD5x-ChiTVqkT+iniBe1D7k3F2KJGzdCj+5drSArL8g@mail.gmail.com> |
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 <[email protected]> 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.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=3199556 > > To unsubscribe from this discussion, e-mail: [[email protected]]. ------------------------------------------------------ http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=3201833 To unsubscribe from this discussion, e-mail: [[email protected]].