Ticket #18 (new defect)

Opened 23 months ago

Last modified 14 months ago

Deleting a file in Eclipse does not trigger 'hg remove'

Reported by: dougxc@… Owned by:
Priority: major Keywords:
Cc:

Description

Explicitly deleting a file in Eclipse where the file is currently being tracked by Mercurial does not cause the equivalent of 'hg remove' to be applied to the file.

Attachments

Change History

Changed 22 months ago by whit

is this what CVS/Subclipse do? I decided against this because sometimes you need to remove files from Eclipse without it affecting your repository. For instance, if you deleted all your projects and re-imported them, would you want that to affect the repo?

Changed 21 months ago by axel@…

IMHO, it should be the other way around: Merclipse should automatically track what one does with standard Eclipse command (move, rename, delete, etc.). This is how the CVS plugin makes CVS bearable. If for any reason you want a local-only change, that should be performed via the "Team" menu or via the command line. Removing a project is a completely different kind of operation and does (as you said) not apply to these rules.

Changed 21 months ago by whit

I believe the problem here is that Eclipse doesn't necessarily differentiate between various actions that will cause a file to be deleted from Eclipse -- so telling whether or not the user pressed delete or is removing the entire project is non-trivial.

I'm not sure how important this should be, because if you delete a file it still shows up in the bottom box of the commit dialog, and you can always use Team->Remove to delete/remove it from the repo.

Changed 21 months ago by axel@…

I think removing projects does not process all files as being deleted.

My vote is in favor of an "hg remove" (it always did the right thing with CVS).

Add/Change #18 (Deleting a file in Eclipse does not trigger 'hg remove')

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change. Next status will be 'new'
The owner will change to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.