Check in unchanged files to clean up change set

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

Moderator: SourceGear

Post Reply
jthrush
Posts: 9
Joined: Fri Mar 21, 2008 5:33 pm
Location: Seattle, WA
Contact:

Check in unchanged files to clean up change set

Post by jthrush » Mon Apr 07, 2008 11:13 pm

There is a command ("Revert unchanged files") in Perforce that I found useful and I wonder if there is an equivalent in Vault:

Before I check in a change set, I would like a command which will look for all files that I have checked out but are unchanged, and perform and "Undo Check Out" on those files. That way, my change set will only consist of files which are actually modified and going to be checked in. That makes it easier to go through all the changes I have made to verify their correctness.

You can approximate this by sorting the change set window by "Type" but I'm finding that it is reporting "modified" on files that are actually unchanged (probably because I made a change then un-did it so the file timestamp is newer but the file's bits are identical). It would be nice to have this issue fixed as well (have the client actually check the bits, not just the timestamp in reporting "Modified" in the "Type" column).

Thanks!
------------------------------------
James Thrush
President
Super X Studios LLC
jthrush@superxstudios.com
http://www.superxstudios.com
------------------------------------

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Tue Apr 08, 2008 9:46 am

perform and "Undo Check Out" on those files
Actually, this is the default behavior Vault, at least in the latest version.

Files that are not modified are not checked in unless you specifically enabled that option in the Vault client. Even if the timestamp has changed, Vault should still recognize that the size is unchanged, and you should see "size unchanged" in the pending change set. You can also enable CRC's to use instead of modification times, although this can slow performance.

Look in the Vault GUI client under Toll->Options->Checkin and Local Files for your options.
Last edited by lbauer on Tue Apr 08, 2008 3:20 pm, edited 1 time in total.
Linda Bauer
SourceGear
Technical Support Manager

jthrush
Posts: 9
Joined: Fri Mar 21, 2008 5:33 pm
Location: Seattle, WA
Contact:

Post by jthrush » Tue Apr 08, 2008 1:03 pm

Awesome! That "Detect modified files using CRCs instead of modification times" was just what I was looking for.
Thanks
------------------------------------
James Thrush
President
Super X Studios LLC
jthrush@superxstudios.com
http://www.superxstudios.com
------------------------------------

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Tue Apr 08, 2008 3:22 pm

:D
Linda Bauer
SourceGear
Technical Support Manager

Post Reply