Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » "Delete" command on context menu question
"Delete" command on context menu question [message #37045] Fri, 23 May 2003 13:02 Go to next message
Eclipse UserFriend
Originally posted by: ram.jtcsv.com

Hi All,
Why does the "Delete" command on the context menu of a file in Eclipse
mark the file for removal from the CVS repository?

I would expect that the "Delete" command removes the file from the file
system and there should be a command in the context menu under Team ->
Remove file from Repository. Why is this not done this way ... is there a
good reason?


Ram Viswanadha
ICU Team
GCoC San Jose
IBM
Re: "Delete" command on context menu question [message #37384 is a reply to message #37045] Fri, 23 May 2003 15:21 Go to previous messageGo to next message
Eclipse UserFriend
Because that is how CVS works.

If you delete a file from a CVS directory, by definition you are telling
CVS you want to remove that file from the repository. The next "commit"
will remove it from the repository. That is how Delete works in any CVS
environment I've ever worked in, including WinCVS and Forte.

Ram wrote:

> Hi All,
> Why does the "Delete" command on the context menu of a file in Eclipse
> mark the file for removal from the CVS repository?

> I would expect that the "Delete" command removes the file from the file
> system and there should be a command in the context menu under Team ->
> Remove file from Repository. Why is this not done this way ... is there a
> good reason?


> Ram Viswanadha
> ICU Team
> GCoC San Jose
> IBM
Re: "Delete" command on context menu question [message #37518 is a reply to message #37384] Fri, 23 May 2003 17:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ram.jtcsv.com

Buddha wrote:

That is not what I am asking. In the Package Explorer view select a file
-> right click -> select \"Delete\" from the context menu. What do you
think should happen? I think Eclipse should delete the file from the file
system. Instead it is telling CVS to remove it from CVS.

All CVS actions are categorized under Team. Why is there not a command
\"Remove from Repository\" in team?


> Because that is how CVS works.

> If you delete a file from a CVS directory, by definition you are telling
> CVS you want to remove that file from the repository. The next \"commit\"
> will remove it from the repository. That is how Delete works in any CVS
> environment I\'ve ever worked in, including WinCVS and Forte.

> Ram wrote:

> > Hi All,
> > Why does the \"Delete\" command on the context menu of a file in Eclipse
> > mark the file for removal from the CVS repository?

> > I would expect that the \"Delete\" command removes the file from the file
> > system and there should be a command in the context menu under Team ->
> > Remove file from Repository. Why is this not done this way ... is there a
> > good reason?


> > Ram Viswanadha
> > ICU Team
> > GCoC San Jose
> > IBM
Re: "Delete" command on context menu question [message #37550 is a reply to message #37518] Fri, 23 May 2003 17:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NOSPAM.us.ibm.com

If you change a file, you don't need to tell Team that you explicitly
changed it, the synchronize knows this. It is the same for delete, you
"changed" the file by getting rid of it, so the synchronize nows says
get rid of it on CVS. It is also the same for add, you don't explicitly
add a file to CVS, you simply create it in your project and the next
time you synchronize it gets added.

The purpose of synchronize is to get your project and the CVS in sync
with each other, which includes all new files, all changed files, and
all removed files.
Re: "Delete" command on context menu question [message #37654 is a reply to message #37518] Fri, 23 May 2003 18:50 Go to previous message
Eclipse UserFriend
That is EXACTLY what you are telling it to do.

Again, when you delete a file from a directory that is managed by CVS,
you are telling CVS that you want to delete it from the repository. That
is how CVS works.

There is no command "Remove from Repostitory" because there is no CVS
command "Remove file from repository". In order to do that, you must
delete the file from the filesystem and execute a "commit".

Ram wrote:
> Buddha wrote:
>
> That is not what I am asking. In the Package Explorer view select a file
> -> right click -> select \"Delete\" from the context menu. What do you
> think should happen? I think Eclipse should delete the file from the file
> system. Instead it is telling CVS to remove it from CVS.
>
> All CVS actions are categorized under Team. Why is there not a command
> \"Remove from Repository\" in team?
>
>
>
>>Because that is how CVS works.
>
>
>>If you delete a file from a CVS directory, by definition you are telling
>>CVS you want to remove that file from the repository. The next \"commit\"
>>will remove it from the repository. That is how Delete works in any CVS
>>environment I\'ve ever worked in, including WinCVS and Forte.
>
>
>>Ram wrote:
>
>
>>>Hi All,
>>>Why does the \"Delete\" command on the context menu of a file in Eclipse
>>>mark the file for removal from the CVS repository?
>>
>
>>>I would expect that the \"Delete\" command removes the file from the file
>>>system and there should be a command in the context menu under Team ->
>>>Remove file from Repository. Why is this not done this way ... is there a
>>>good reason?
>>
>
>
>>>Ram Viswanadha
>>>ICU Team
>>>GCoC San Jose
>>>IBM
>>
>
>
>
>
>
>
>
Previous Topic:accessing non-Java files
Next Topic:Hover not working
Goto Forum:
  


Current Time: Sat Aug 02 16:51:54 EDT 2025

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

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

Back to the top