Bug 318430 - API request to add Team copy hook
Summary: API request to add Team copy hook
Status: RESOLVED DUPLICATE of bug 109166
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Team (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform Team Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-30 06:09 EDT by Igor Burilo CLA
Modified: 2011-02-09 06:33 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Igor Burilo CLA 2010-06-30 06:09:40 EDT
Team API contains IMoveDeleteHook which allows to hook into move and delete operations, but there's no hook for copy operation.
Here's the reason why hook for copy operation is needed:
When user copies folders, meta-information is also copied with them, in case of Subversive .svn folders are copied, but simple copying of meta-folders will break working copy which will be the source of many problems and then it is hard to restore working copy to initial state. In Subversive we have a workaround for this problem we added 'Copy To' action in Team menu, but this action is relatively hidden from users in compare to Eclipse's Copy action and a few users know about it.
This hook will also be useful for other Team providers, e.g. CVS, which now has a resources listener which deletes CVS meta folders if copy operation occurred, but this is only partial solution as we'll loose history.
Comment 1 Mark Kirchner CLA 2010-06-30 09:47:50 EDT
This seems to be a duplicate of bug 109166.
Comment 2 Jörg Thönnes CLA 2010-06-30 10:57:34 EDT
In addition, if I copy and paste e.g. a Java class and have a (renamed) copy in my work space,
Subversion is able to track the copy history of this class (similiar to renaming / moving a file).

This should be also possible to be implemented based on this API extension.
Comment 3 Tomasz Zarna CLA 2010-06-30 11:27:46 EDT
(In reply to comment #1)
> This seems to be a duplicate of bug 109166.

Igor, Jorg, could you take a look at that bug and confirm? It looks to me that Mark is right.
Comment 4 Igor Burilo CLA 2010-07-01 03:40:31 EDT
Duplicate of bug 109166

*** This bug has been marked as a duplicate of bug 109166 ***