Add/delete + check in existing files in the same transaction

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

Moderator: SourceGear

Post Reply
Tri
Posts: 288
Joined: Wed Dec 22, 2004 11:10 am

Add/delete + check in existing files in the same transaction

Post by Tri » Tue Mar 08, 2011 3:40 pm

Hi,

Using Vault Server & Client 4.14. VS2008 & VS2010, in both Classic and Enhanced Client mode.

I would like the check in comment to be consistent for an entire changeset in one single check in. The changeset can include any or all of the individual file changes below:
- Add / Delete file / folder
- File / Folder rename
- Files updates

Is it possible with Vault 4.14 and how to do this?
Thanks in advance for any help.

jclausius
Posts: 3702
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Re: Add/delete + check in existing files in the same transac

Post by jclausius » Tue Mar 08, 2011 3:55 pm

Tri wrote:Hi,

Using Vault Server & Client 4.14. VS2008 & VS2010, in both Classic and Enhanced Client mode.

I would like the check in comment to be consistent for an entire changeset in one single check in. The changeset can include any or all of the individual file changes below:
- Add / Delete file / folder
- File / Folder rename
- Files updates

Is it possible with Vault 4.14 and how to do this?
Thanks in advance for any help.
Tri,

Yes. That was one of the features of Vault 4.0 - See Vault 4.0 Release Notes - Preview Move, Rename and Delete options. The functionality is available in the the Vault GUI, Vault Visual Studio Enhanced, and Vault Eclipse clients.

First you need to go into the Vault Client options. From the "Concurrent Development Style", you will notice options like working with "Checkout, Edit, Checkin" or "Edit, Merge, Commit". There is one other option, "Auto-commit after each operation." Uncheck that option.

Now for a test, go into the Vault client into a test repository and/or folder. Do a move, rename, or delete. Afterward, you will notice the operation in the "pending list." You can also rename or add items that were just deleted. Once you have your change set exactly like you want, commit the operation. If you want to undo that operation, just delete it from the pending change set.

Note, this is a somewhat advanced feature as although the pending item affects your local tree, it does not affect the repository until committed. Some users do not realize items build up in the pending change set until they are committed or removed. When turning off "auto-commit", please make sure you know what is in the pending change set.

Also note, at the release of Vault 4, Visual Studio 2010 was not released. Vault 4's support within Visual Studio 2010 may give unexpected results, and therefore is not supported. Vault 5's Enhanced Client includes support for Visual Studio.NET 2003, Visual Studio 2005, Visual Studio 2008, and Visual Studio 2010.

HTH
Jeff Clausius
SourceGear

Tri
Posts: 288
Joined: Wed Dec 22, 2004 11:10 am

Re: Add/delete + check in existing files in the same transac

Post by Tri » Tue Mar 08, 2011 4:22 pm

Hi,

Thank you for your quick reply. Tested OK using Vault 4x GUI. I am going to tell the Developers about this "Auto-commit after each operation" option. Some of them will probably like it.

jclausius
Posts: 3702
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Re: Add/delete + check in existing files in the same transac

Post by jclausius » Tue Mar 08, 2011 4:26 pm

Your welcome.

Note, some people prefer the 'auto-commit' option as it is more like VSS, and others do not as they want to do a lot in one operation. Vault does a pretty good job at handling both modes of operation.

Hope the developers like it.
Jeff Clausius
SourceGear

Post Reply