|
Re: Copy/Paste should have svn copy functionality [message #20193 is a reply to message #20073] |
Fri, 30 May 2008 03:28 |
Francois Cottet 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 |
Eclipse User |
|
|
|
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 #21363 is a reply to message #21332] |
Sat, 14 June 2008 08:55 |
Eclipse User |
|
|
|
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 |
|
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 |
Eclipse User |
|
|
|
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 |
Jörg Thönnes 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/*
>>
|
|
|
Powered by
FUDForum. Page generated in 0.04442 seconds