Login | Register
My pages Projects Community openCollabNet

Discussions > issues > [Issue 784] New - Folder created by copy/paste from a versioned folder is not unversioned

subclipse
Discussion topic

Back to topic list

[Issue 784] New - Folder created by copy/paste from a versioned folder is not unversioned

Author selsemore
Full name Stephen Elsemore
Date 2008-07-30 09:49:14 PDT
Message http://subclipse.tig​ris.org/issues/show_​bug.cgi?id=784
                 Issue #|784
                 Summary|Folder created by copy/paste from a versioned folder i
                        |s not unversioned
               Component|subclipse
                 Version|current
                Platform|All
              OS/Version|All
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|core
             Assigned to|issues@subclipse
             Reported by|selsemore






------- Additional comments from selsemore at tigris dot org Wed Jul 30 09:49:14 -0700 2008 -------
When Copy/paste is used to copy a versioned folder, the SVN metadata folders are also
copied. This causes the new folder to appear to Subversion to be a subsetted checkout
from the original location, when the desired behavior is that the new folder be unversioned.
 

Note that this problem does not occur when copy/paste is used to copy a Java package in
the package explorer view. In that scenario, the new package is unversioned as expected.

Ideally a resource listener could detect this and delete the .svn folders. But this listener
must be able to distinguish this situation from a valid situation such as a Team -> Copy
operation.

I attempted to fix this problem by enhancing one of our resource listeners (TeamPrivateListener)
to detect added folders and, for each added folder, checking to see if it contains an
SVN metadata folder. If it does, then the SVN status is checked. It should be ADDED.
 If it is not ADDED, then the .svn folder is removed from the added folder and all it's
descendants.

I think this would have worked, but I ran into a problem that I haven't been able to figure
out how to resolve. When the listener attempts to delete the .svn folder, it is unable
to do so because 2 of the files in the folder (entries, format) are locked. It seems
like it must be something that Eclipse is doing that locks these files in the course of
the copy/paste (they are not normally locked), but I haven't figured out what causes it,
or how to release the locks or force a delete of the locked files.

I am going to attach a patch of the fix I attempted.

« Previous message in topic | 1 of 26 | Next message in topic »

Messages

Show all messages in topic

[Issue 784] New - Folder created by copy/paste from a versioned folder is not unversioned selsemore Stephen Elsemore 2008-07-30 09:49:14 PDT
     [Issue 784] Folder created by copy/paste from a versioned folder is not unversioned selsemore Stephen Elsemore 2008-07-30 09:56:26 PDT
     [Issue 784] Folder created by copy/paste from a versioned folder is not unversioned jcompagner jcompagner 2009-07-26 04:17:34 PDT
     [Issue 784] Folder created by copy/paste from a versioned folder is not unversioned jcompagner jcompagner 2009-07-29 11:06:07 PDT
     [Issue 784] Folder created by copy/paste from a versioned folder is not unversioned selsemore Stephen Elsemore 2009-07-31 09:19:04 PDT
     [Issue 784] Folder created by copy/paste from a versioned folder is not unversioned selsemore Stephen Elsemore 2009-07-31 11:22:38 PDT
     [Issue 784] Folder created by copy/paste from a versioned folder is not unversioned jcompagner jcompagner 2009-08-01 02:15:25 PDT
     [Issue 784] Folder created by copy/paste from a versioned folder is not unversioned selsemore Stephen Elsemore 2009-08-03 09:54:40 PDT
     [Issue 784] Folder created by copy/paste from a versioned folder is not unversioned selsemore Stephen Elsemore 2009-08-03 10:06:44 PDT
     [Issue 784] Folder created by copy/paste from a versioned folder is not unversioned selsemore Stephen Elsemore 2009-08-03 10:07:47 PDT
     [Issue 784] Folder created by copy/paste from a versioned folder is not unversioned jcompagner jcompagner 2009-08-03 10:16:09 PDT
     [Issue 784] Folder created by copy/paste from a versioned folder is not unversioned markphip Mark Phippard 2009-08-03 12:14:53 PDT
     [Issue 784] Folder created by copy/paste from a versioned folder is not unversioned seidler Stefan Seidel 2008-10-23 03:02:18 PDT
     [Issue 784] Folder created by copy/paste from a versioned folder is not unversioned sgoodall Simon Goodall 2009-08-07 06:16:14 PDT
     [Issue 784] Folder created by copy/paste from a versioned folder is not unversioned selsemore Stephen Elsemore 2010-01-11 10:25:26 PST
     [Issue 784] Folder created by copy/paste from a versioned folder is not unversioned moixa Tobias Sager 2010-04-30 02:23:30 PDT
     [Issue 784] Folder created by copy/paste from a versioned folder is not unversioned mauromol Mauro Molinari 2010-09-28 06:13:29 PDT
     [Issue 784] Folder created by copy/paste from a versioned folder is not unversioned mauromol Mauro Molinari 2011-11-30 00:26:48 PST
     [Issue 784] Folder created by copy/paste from a versioned folder is not unversioned markphip Mark Phippard 2011-11-30 05:36:51 PST
     [Issue 784] Folder created by copy/paste from a versioned folder is not unversioned micha_riser Micha Riser 2009-02-06 02:32:43 PST
     [Issue 784] Folder created by copy/paste from a versioned folder is not unversioned selsemore Stephen Elsemore 2009-02-18 07:15:15 PST
     [Issue 784] Folder created by copy/paste from a versioned folder is not unversioned markphip Mark Phippard 2009-02-18 07:21:33 PST
     [Issue 784] Folder created by copy/paste from a versioned folder is not unversioned jcompagner jcompagner 2009-07-24 02:42:57 PDT
     [Issue 784] Folder created by copy/paste from a versioned folder is not unversioned jcompagner jcompagner 2009-07-24 02:44:17 PDT
     [Issue 784] Folder created by copy/paste from a versioned folder is not unversioned markphip Mark Phippard 2009-07-24 05:41:29 PDT
Page: of 2 « Previous | Next »
Messages per page: