Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Subversive » Copy/Paste should have svn copy functionality
Copy/Paste should have svn copy functionality [message #20073] Wed, 28 May 2008 12:35 Go to next message
Jörg Thönnes is currently offline Jörg ThönnesFriend
Messages: 229
Registered: July 2009
Senior Member
Hi all,

in Eclipse I can copy folders with Copy / Paste. But the .svn directories are also copied, so that I
get problems with subversion.

IMHO, Eclipse should avoid to copy version control related files. Ideal solution would be if paste
could use the "svn copy" operation to create the copy if some conditions are met (i.e. copy source
is under svn control, same repo etc.)

I think this would be a general Eclipse Team RFE (do not copy version control files) and a separate
Subversive RFE.

Any comments?

Jörg
Re: Copy/Paste should have svn copy functionality [message #20193 is a reply to message #20073] Fri, 30 May 2008 03:28 Go to previous messageGo to next message
Francois Cottet is currently offline Francois CottetFriend
Messages: 19
Registered: July 2009
Junior Member
Hi Jorg,

I agree with you. I already encountered situation where developers were
not aware of this behavior and trying to copy a resource folder from a
project to another one and it mess up the repositories.

In the same idea I found that when you do a copy/paste on a file in
eclipse, the file is marked as replaced, while if you do the same
operation directly on your filesystem, the file is marked as modified
(which what I want).

Regards,
Francois


Jörg Thönnes wrote:
> Hi all,
>
> in Eclipse I can copy folders with Copy / Paste. But the .svn directories are also copied, so that I
> get problems with subversion.
>
> IMHO, Eclipse should avoid to copy version control related files. Ideal solution would be if paste
> could use the "svn copy" operation to create the copy if some conditions are met (i.e. copy source
> is under svn control, same repo etc.)
>
> I think this would be a general Eclipse Team RFE (do not copy version control files) and a separate
> Subversive RFE.
>
> Any comments?
>
> Jörg
Re: Copy/Paste should have svn copy functionality [message #20866 is a reply to message #20193] Thu, 12 June 2008 15:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alexander.gurov.polarion.org

Hello Francois, Jorg,

This is well-known problem. Unfortunately the problem cannot be solved
easily because Eclipse Team Services does not provide a hook for resources
copying. So, in order to avoid the problem please use action Team->Copy
To...
Re: Copy/Paste should have svn copy functionality [message #21332 is a reply to message #20866] Fri, 13 June 2008 06:53 Go to previous messageGo to next message
Jörg Thönnes is currently offline Jörg ThönnesFriend
Messages: 229
Registered: July 2009
Senior Member
On 06/12/08 17:41, Alexander Gurov wrote:
> Hello Francois, Jorg,
>
> This is well-known problem. Unfortunately the problem cannot be solved
> easily because Eclipse Team Services does not provide a hook for
> resources copying. So, in order to avoid the problem please use action
> Team->Copy To...

Hello Alexander,

the same applies for moving, I guess. It would be good to extend the Eclipse framework
here (as you did for [Bug 230853] Sometime resources are disappeared from Synchronize View).

Could you file a bug or shall I do? I think you are able to do a better bug description since you
know the internal much better.

In general. I believe that the Subversive integration is a good chance to fill some gaps in the
Eclipse framework.

Болшое спасибо для ваш отличный работ!
(I guess you still speak Russian :-)

Cheers, Jörg
Re: Copy/Paste should have svn copy functionality [message #21363 is a reply to message #21332] Sat, 14 June 2008 08:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alexander.gurov.polarion.org

Hello Jörg,

Fortunately "Move" and "Delete" actions work correctly because Eclipse
Team Services provides the way to intercept resources moving and deletion.
So, the issue relates only to "Copy" action. Also AFAIR the bug for this
issue already exists and you can see its description at:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=109166
and
https://bugs.eclipse.org/bugs/show_bug.cgi?id=33924

Also I will say that currently we have no time to implement team hooks for
intercepting the "Copy" action because all our attention is concentrated
on supporting of JavaHL 1.5 and including our project into Ganymede
Simlutaneous Release program.

P.S.
Yes, I, Alexey and Igor still speek Russian (and Ukrainian). :-) So, thank
you for your great help in finding and solving all these issues.

Best regards,
Alexander Gurov
Subversive Team
Re: Copy/Paste should have svn copy functionality [message #46306 is a reply to message #20073] Tue, 12 May 2009 08:52 Go to previous messageGo to next message
Dollyn Sun is currently offline Dollyn SunFriend
Messages: 62
Registered: July 2009
Location: China
Member

This is a multi-part message in MIME format.
--------------080408090404020108080104
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

We just have the same problem. But I see that when Copy/Paste in a Java
Project, there are not such
problems. And I didn't find anything special in JDT's code.

Is there any one knows how does JDT achieve this? Or the Subversive did
anything?

J


Dollyn
Re: Copy/Paste should have svn copy functionality [message #46336 is a reply to message #46306] Tue, 12 May 2009 10:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: andrealuciano.dessi.gmail.com

Hy Dollyn,

i usually avoid this problem exporting those files i need to copy and
then importing them back.

Or quicky you can use the rightclick -> Team -> Copy To
funcition de-selecting "Keep resource history" (which cause
not to copy .svn folders).

Have a nice day

--
Andrea



Dollyn ha scritto:
> We just have the same problem. But I see that when Copy/Paste in a Java
> Project, there are not such
> problems. And I didn't find anything special in JDT's code.
>
> Is there any one knows how does JDT achieve this? Or the Subversive did
> anything?
>
> Jörg Thönnes wrote:
>> Hi all,
>>
>> in Eclipse I can copy folders with Copy / Paste. But the .svn directories are also copied, so that I
>> get problems with subversion.
>>
>> IMHO, Eclipse should avoid to copy version control related files. Ideal solution would be if paste
>> could use the "svn copy" operation to create the copy if some conditions are met (i.e. copy source
>> is under svn control, same repo etc.)
>>
>> I think this would be a general Eclipse Team RFE (do not copy version control files) and a separate
>> Subversive RFE.
>>
>> Any comments?
>>
>> Jörg
>>
>
> --
>
> */Dollyn/*
>
Re: Copy/Paste should have svn copy functionality [message #46366 is a reply to message #46336] Tue, 12 May 2009 10:35 Go to previous message
Jörg Thönnes is currently offline Jörg ThönnesFriend
Messages: 229
Registered: July 2009
Senior Member
On 05/12/09 12:30, a.dessi wrote:
> Hy Dollyn,
>
> i usually avoid this problem exporting those files i need to copy and
> then importing them back.
>
> Or quicky you can use the rightclick -> Team -> Copy To
> funcition de-selecting "Keep resource history" (which cause
> not to copy .svn folders).

But I do want the resource history, i.e. the indication in SVN that this file was
copied/moved/renamed from the other file.

A related issue is that the rename refactoring also could be done using "svn move", but it works as
"add/del" which looses history. Therefore, I sometimes skip the resource rename action during
refactorings and add them myself using "Copy To" and file removal. This is a night-mare!

Cheers, Jörg

> Dollyn ha scritto:
>> We just have the same problem. But I see that when Copy/Paste in a
>> Java Project, there are not such
>> problems. And I didn't find anything special in JDT's code.
>>
>> Is there any one knows how does JDT achieve this? Or the Subversive
>> did anything?
>>
>> Jörg Thönnes wrote:
>>> Hi all,
>>>
>>> in Eclipse I can copy folders with Copy / Paste. But the .svn
>>> directories are also copied, so that I
>>> get problems with subversion.
>>>
>>> IMHO, Eclipse should avoid to copy version control related files.
>>> Ideal solution would be if paste
>>> could use the "svn copy" operation to create the copy if some
>>> conditions are met (i.e. copy source
>>> is under svn control, same repo etc.)
>>>
>>> I think this would be a general Eclipse Team RFE (do not copy version
>>> control files) and a separate
>>> Subversive RFE.
>>>
>>> Any comments?
>>>
>>> Jörg
>>>
>>
>> --
>>
>> */Dollyn/*
>>
Previous Topic:SVN and UTF8
Next Topic:Polarion.com downloads hanging
Goto Forum:
  


Current Time: Fri Nov 28 17:22:42 GMT 2014

Powered by FUDForum. Page generated in 0.04050 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software