Eclipse Plugin: Deleting newly added file

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
everettmuniz
Posts: 21
Joined: Wed Sep 27, 2006 6:51 am

Eclipse Plugin: Deleting newly added file

Post by everettmuniz » Tue Jun 08, 2010 8:29 pm

Eclipse: 3.2.2.r322

After deleting a newly added file the "Add File" entry stays in the "Pending Change Set" and fouls up a "Commit All" since the referenced file doesn't exist.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Eclipse Plugin: Deleting newly added file

Post by Beth » Wed Jun 09, 2010 10:34 am

Try selecting the item in the pending changes and pressing your delete key. That should remove the pending add.

If the add was never committed, was your delete committed?
Beth Kieler
SourceGear Technical Support

everettmuniz
Posts: 21
Joined: Wed Sep 27, 2006 6:51 am

Re: Eclipse Plugin: Deleting newly added file

Post by everettmuniz » Thu Jun 10, 2010 1:00 pm

Thanks for you help with this Beth.

You're suggested work around is essentially what we've been doing but it ends up being pretty tedious. There are often occasions when a dev is doing exploratory work and there will be lots of churn (files created/deleted frequently). After a couple hours the dev settles on an approach and wants to check in. He/she is then confronted with an error on the commit all and has to go through the list looking for Add File entries for files that no longer exist.

I'm not sure I understand what you mean as far as whether the delete was committed. Sorry, probably being thick but could you explain? Thanks!

everettmuniz
Posts: 21
Joined: Wed Sep 27, 2006 6:51 am

Re: Eclipse Plugin: Deleting newly added file

Post by everettmuniz » Thu Jun 10, 2010 1:06 pm

Btw. We're using Vault 5.02. Should have said that from the start. sorry.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Eclipse Plugin: Deleting newly added file

Post by Beth » Thu Jun 10, 2010 4:07 pm

It depends on the settings that are in place, but it's possible to add a file and not have it pushed up to the Vault server. What this does is place it in the Vault pending changes. If you want each add and delete to be applied to the server, you would turn on the auto-commit option in Vault - Tools - Options - CheckIn. You don't have to, but if you add multiples of the same file, Vault does not know if you want one over the other.

Am I correct in thinking you want it to find any duplicate actions in the pending changes and remove them?
Beth Kieler
SourceGear Technical Support

everettmuniz
Posts: 21
Joined: Wed Sep 27, 2006 6:51 am

Re: Eclipse Plugin: Deleting newly added file

Post by everettmuniz » Mon Jun 14, 2010 9:45 am

In a nutshell, we'd just like the pending changes to get updated on delete of a file that was added to the eclipse project but never actually committed to vault. The update would simply remove the add file entry from pending changes.

The current behavior is
1) add new file
2) pending changes updated to reflect add file change
3) delete newly added file
4) pending changes still reflect add file change even though file has been deleted
5) now eclipse and pending change set are out of sync


The desired behavior is
1) add new file
2) pending changes updated to reflect add file change
3) delete newly added file
4) pending changes updated by removing add file change
5) eclipse and pending change set remain in sync

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Eclipse Plugin: Deleting newly added file

Post by Beth » Thu Jul 08, 2010 3:33 pm

I've entered in a feature request to change the behavior. In the meantime, what you might do when you want to delete a file you've added, but not committed, is try removing the add and see if that helps.

F: 15507
Beth Kieler
SourceGear Technical Support

Post Reply