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

Re: Check for Modifications Dialog, copy files/paths

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Fri, 14 Nov 2008 22:07:28 +0100

Larry Shatzer, Jr. wrote:
> On Fri, Nov 14, 2008 at 11:59 AM, Stefan Küng <tortoisesvn_at_gmail.com> wrote:
>> I can't reproduce the hang. But remember to hold down the ctrl key -
>> otherwise you're *moving* the files, not copying them!
>
> I forgot to mention the hang is caused by a unversioned directory with
> file contents. It does not happen when I have the ctrl key held down.
>
> For my example I made a "test" folder (unversioned), and contains 1
> file, and 1 file in the directory where test was created (which is
> versioned).
>
> When I don't hold down ctrl, the hang happens when I drag them to
> another folder (that is on my desktop). To test if it was my virus
> scanner, I disabled that, and it still hangs.
>
> When I do hold down ctrl, the directory I copied to has the test
> folder and file inside the test folder, and the file in the versioned
> directory. It also has the file from the test folder in the top level
> too.
>
> If that did not make sense, here is the files from the check for
> modifications dialog.
>
> test (non-versioned file)
> test/README (non-versioned file)
> test.txt (non-versioned file)
>
> So it hangs when I try to move (no ctrl) test, test/README, and
> test.txt. If I copy (holding ctrl), it creates the following
>
> test
> test/README
> README
> test.txt

I think I know why it happens:
you move the folder *and* the file *inside* that folder. The explorer
first moves the folder, then tries to move the file, but the file was
moved together already with the folder, so it doesn't exist anymore at
the original location.

Maybe I can disable the move in such cases and only allow the copy
operation, but I'll have to check first...

Stefan

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

Received on 2008-11-14 22:07:51 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.