Ticket #21 (new defect)

Opened 3 years ago

Last modified 3 years ago

New files/classes in Eclipse are not added to Mercurial

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

Description

When a new file is created in Eclipse (e.g. via File | New | Class), then I would expect the equivalent of 'hg add' to be applied to the file. In any case, this is what the CVS and Subversion Eclipse plugins do and so anyone migrating from one of these systems will be a little surprised.

Attachments

Change History

Changed 3 years ago by axel@…

Really? With CVS, I have to add a file to version control first (it initially appears with a question mark). I do agree, though, that Merclipse should automatically track move (e.g. during refactorings) and delete, but I haven't tested yet, if it does so. The CVS plugin automatically tracks this kind of change and this is indeed cool.

Changed 3 years ago by whit

Merclipse does track move and refactoring.

But I think it would be reasonable to call HG add on it.

Changed 3 years ago by axel@…

One thing to consider:

How does one add files to a project that are to be ignored by Mercurial? This functionality is an interesting dual to removing things where it was argued that unregistered files would be caught by the commit dialog.

For CVS (which always felt very intuitive to me), my mental rule has been: I have to explicitly add files to version control, but once they are controled, they are always tracked by the plug-in.

Add/Change #21 (New files/classes in Eclipse are not added to Mercurial)

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.