Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » copy paste over existing file makes it unmanaged
copy paste over existing file makes it unmanaged [message #663106] Sun, 03 April 2011 16:02 Go to next message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
In EGit, when copying a file over an existing managed file with
copy/paste, the file becomes ignored is this an issue, or "by design"?

Example: file "foo.txt" in project A is managed. The file "foo.txt" in
project B (also managed) is copied with CTRL-C, and pasted over
"foo.txt" in project A - the question "Do you want to replace..." is
answered with "Y".

I then have to add the file foo.txt again.

I can log an issue if you want.

Regards
- henrik
Re: copy paste over existing file makes it unmanaged [message #663169 is a reply to message #663106] Mon, 04 April 2011 08:17 Go to previous messageGo to next message
Stefan Lay is currently offline Stefan LayFriend
Messages: 342
Registered: July 2009
Senior Member
"Henrik Lindberg" <henrik.lindberg@cloudsmith.com> wrote in message
news:ina598$jah$1@news.eclipse.org...
> In EGit, when copying a file over an existing managed file with
> copy/paste, the file becomes ignored is this an issue, or "by design"?

The underlying reason is a bug in the eclipse framework:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=269067: It sends a delete
event to the MoveDeleteHook because it detects that a new resource replaces
the old one. Btw., this does not happen if the copied resource was once
copied from the other one, because eclipse tracks local history.

> I can log an issue if you want.

I wonder that we do not yet have one. It would be great if you opened one,
we could then link it to the existing framework bug.

Thanks,
Stefan
Re: copy paste over existing file makes it unmanaged [message #663251 is a reply to message #663169] Mon, 04 April 2011 13:04 Go to previous message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
https://bugs.eclipse.org/bugs/show_bug.cgi?id=341774

- henrik

On 4/4/11 10:17 AM, Stefan Lay wrote:
> Henrik Lindberg" <henrik.lindberg@cloudsmith.com> wrote in message
> news:ina598$jah$1@news.eclipse.org...
>> In EGit, when copying a file over an existing managed file with
>> copy/paste, the file becomes ignored is this an issue, or "by design"?
>
> The underlying reason is a bug in the eclipse framework:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=269067: It sends a delete
> event to the MoveDeleteHook because it detects that a new resource
> replaces the old one. Btw., this does not happen if the copied resource
> was once copied from the other one, because eclipse tracks local history.
>
>> I can log an issue if you want.
>
> I wonder that we do not yet have one. It would be great if you opened
> one, we could then link it to the existing framework bug.
Previous Topic:How to limit the amount of history which is shown?
Next Topic:newbie Q - best practice reviewing diff local/remote master
Goto Forum:
  


Current Time: Wed Apr 24 16:34:38 GMT 2024

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

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

Back to the top