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

Re: bug in move of directories

From: Maarten Brock <sourceforge.brock_at_dse.nl>
Date: 2006-09-12 22:00:11 CEST

> > Hello,
> >
> > I'm using TortoiseSVN 1.4.0, Build 6876 - 32 Bit -dev
> >
> > I think I found a bug. When I right-click and drag a versioned
> > directory to a different place in the tree and choose 'move' then
> > everything is moved as expected, the old dir is marked deleted, the
> > new dir is marked added(+), the files in the directory are still
> > versioned, but any subdirectory under the moved directory is no
> > longer versioned. The files inside the subdirectory still seem
> > versioned though.
> >
> > After doing this I don't dare to commit, because I'm afraid I will
> > loose the whole subdirectory and everything in it.
> >
> > I hope this is clear enough, if not please contact me.
> >
> > Greetings,
> > Maarten Brock

> I can't reproduce this here. When I move a folder with versioned
> subfolders to another location (or if I just rename the folder in SVN),
> all the subfolders are still versioned at the new location.
> The subfolders don't show the 'added' overlay though, but that's not a
> problem. Just committing the parent folder which is marked as added is
> enough.
>
> Are your subfolders maybe part of another repository (nested layout)?
>
> Stefan

No, I use only one repository. I noticed the overlay icon wasn't shown,
but that didn't worry me too much. It's the output from Check for
modifications that surprised me.

Here's a part of the current layout of the tree:

sdcc
+---as
| | <files>
| |
| \--- mcs51
| <mcs51 assembler files>
| <mcs51 linker files>
|
\---link
    | <linker files>
    |
    \---z80
        <z80 linker files>

Now I want to move "link" under "as" and then I want to move the <mcs51
linker files> to a subdirectory "mcs51" under link, creating something
like this:

sdcc
\---as
    | <files>
    |
    +--- mcs51
    | <mcs51 assembler files>
    |
    \---link
        | <linker files>
        |
        +--- mcs51
        | <mcs51 linker files>
        |
        \---z80
            <z80 linker files>

In order to accomplish this I right-dragged "link" to the new location
and chose "SVN Move versioned files here". I think I cannot move only
half a directory so I created a new one "mcs51" under the moved "link".
Then I right-dragged the <mcs51 linker files> to the new dir and again
click "SVN Move versioned files here".

Now before I commit I look at "Check for modifications" on the whole
tree. I see:

as/link added (+)
as/link/mcs51 added
as/link/mcs51/<mcs51 linker files> added (+)
as/mcs51/<mcs51 linker files> deleted
link deleted
link/<linker files> deleted
link/z80 deleted
link/z80/<z80 linker files> deleted

This leads me to believe that the directory "link" was moved but it's
files and directories are just deleted. I hope you can understand that
looks really scary and I do not feel like doing a commit.

Maybe I just don't understand the process good enough, but I was
surprised to see "deleted" and "added" in the first place. I expected to
see "moved". And seeing things "deleted" but not "added" worries me
pretty much.

If you can assure this is how it is supposed to be, I'll give it a try.
But I can't help feeling I will need my subversion administrator to roll
back.

B.t.w. I'm not on the mailing list, so please send me a copy of your
reply.

Thanks for your patience,
Maarten

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Tue Sep 12 22:05:30 2006

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.