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

[Subclipse-users] Incorrect behavior when copying in Eclipse?

From: Zach Bailey <zach.bailey_at_hannonhill.com>
Date: 2006-08-16 00:10:15 CEST

Hi,

I recently ran into a problem when copying a directory structure within
Eclipse. I had a folder structure that has a bunch of subfolders in it,
each with three subfolders inside that subfolder:

(something like this, the formatting may get munged)

top-level-folder
->folder
-->hi
-->hello
-->greetings

I wanted to easily reproduce this structure so I copied the subfolder
with the three folders in it and pasted it into the top level folder,
such that I could recreate the directory structure without having to do
four "new -> folder" operations. During the copy the folder was renamed.

What I expected to happen was that I would have this resulting folder
structure:

top-level-folder
->folder
-->hi
-->hello
-->greetings
->folder1
-->hi
-->hello
-->greetings

Instead, once I committed, what seems to have happened is that the
contents of the "folder1/hi", "folder1/hello", and "folder1/greetings"
folder simply overwrote the contents of "folder/hi", "folder/hello", and
"folder/greetings", respectively.

Is there something I am not understanding about how this copy operation
is handled by Subclipse? I think it would be nice if that when I copied
something, the objects that resulted in the copy would be completely
unversioned - i.e. the SVN metadata is not copied in the process.
However I understand that "copy" is an Eclipse hook and not something
Subclipse may have any control over - and that the Eclipse copy probably
just performs a file-system level copy of the folder, which in turn
copies the SVN metadata.

What I would suggest is that if possible, if there is a hook or callback
for VCS plug-ins when a "copy" happens, that Subversion go in after the
copy and delete the metadata in the resulting folders such that those
assets are treated as unversioned - is this possible?

Am I thinking along the right lines or am I way off?

Thanks for any feedback you can give --

Cheers,
-Zach

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: users-help@subclipse.tigris.org
Received on Wed Aug 16 00:10:40 2006

This is an archived mail posted to the Subclipse Users mailing list.

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