Different behavior between vault versions when deleting file

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

Moderator: SourceGear

Post Reply
MikiWatts
Posts: 19
Joined: Sun May 31, 2009 10:47 am

Different behavior between vault versions when deleting file

Post by MikiWatts » Wed Mar 08, 2017 10:04 am

Hi, we've recently upgraded our vault version, and I've noticed a difference in behavior when deleting files in VS. In the previous version, when you'd delete a file from the project, the file would be removed from the project and there would be a delete file operation in the Pending Change Set, and I was able to include it in the commit and merge it to other versions later on.
Currently with VS 2015 I'm getting a window that lets me choose between deleting the file from source control and / or leave the file in the working folders, and a do nothing option that leaves the files in source control.
The problem is that if I select the first option, the delete takes place immediately without a delete file operation in Pending Change Set, and if I select the second option, then the file will not be deleted from the source control.

This causes either files getting deleted but not being able to merge them to other versions, or not deleted at all from source control, and ending up with junk files in source control in either case.

What I want is the previous behavior, where it would remove the file from the project and leave a delete file operation in Pending Change Set.

We've also upgraded from VS 2010 to VS 2015, so that might be the reason for the different behavior as well.

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

Re: Different behavior between vault versions when deleting

Post by Beth » Wed Mar 08, 2017 2:44 pm

Check your automatic commit option in the Vault options. You can get there from the Vault Tools - Options - Check In or in VS Tools - Options - Source Control - Vault Options - Advanced options - Check In. If auto commit is turned on, a delete is committed immediately. If it is turned off, it is not.
Beth Kieler
SourceGear Technical Support

MikiWatts
Posts: 19
Joined: Sun May 31, 2009 10:47 am

Re: Different behavior between vault versions when deleting

Post by MikiWatts » Sun Mar 12, 2017 1:51 am

Auto commit is not checked. I've checked in VS and Vault client. Out of the 4 options in that screen, only "Require check out before check in" is checked.

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

Re: Different behavior between vault versions when deleting

Post by Beth » Mon Mar 13, 2017 2:50 pm

Did you upgrade from something older than Vault 6?

The next time you delete, try holding the Shift button. You might have turned off a confirmation window with a setting to delete from Source Control.
Beth Kieler
SourceGear Technical Support

MikiWatts
Posts: 19
Joined: Sun May 31, 2009 10:47 am

Re: Different behavior between vault versions when deleting

Post by MikiWatts » Tue Mar 14, 2017 1:03 am

Will do. I've checked the Command Dialogs screen, and everything is checked there.

Post Reply