undo checkout from command prompt

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

Moderator: SourceGear

Post Reply
joel4370
Posts: 16
Joined: Tue Apr 11, 2006 8:58 am

undo checkout from command prompt

Post by joel4370 » Wed Jun 14, 2006 7:45 am

I use vault checkout, and vault undocheckout from a command propt to use the -wildcard option. Is there a way to do a wildcard search\select from the client app?

This has worked for me for a while now. I got a new machine and was using this procedure, and the checkout worked fine, but when I used the undo checkout it did a undocheckout on everything that I had checked out, not just files specified by the wildcard. This included files that I had check out from a different machine.

I saved the std out to a file and attached it.

Command line:

C:\Program Files\SourceGear\Vault Client>vault checkout -host dbserver2 -user **** -password **** -repository **** -wildcard *.rc $/c++

C:\Program Files\SourceGear\Vault Client>vault undocheckout -host dbserver2 -user **** -password **** -repository ***** -wildcard *.rc $/c++

<!-- Undoing check out of file $/c++/programs/sdxFlip/sdxFlip.rc -->
<!-- Undoing check out of file $/c++/programs/sdxFlip/SqlUtils.cpp -->
<result success="yes" />
Attachments
vault error.txt
std out from command window
(12.07 KiB) Downloaded 302 times

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

Post by lbauer » Wed Jun 14, 2006 9:25 am

I was able to reproduce this with 3.1.9, but in reviewing the documentation, it's not clear that wildcards are supported for UNDOCHECKOUT.

Are you sure this worked before when you had files with a mix of different extensions checked out? Were you using a different version of Vault at the time?
Is there a way to do a wildcard search\select from the client app?
You can do a wildcard Filename search in the Vault Client in the Search tab, but you currently can't check out the results. You will be able to checkout from the Search Pane in Vault 3.5, due out next month.
Linda Bauer
SourceGear
Technical Support Manager

joel4370
Posts: 16
Joined: Tue Apr 11, 2006 8:58 am

Post by joel4370 » Wed Jun 14, 2006 9:37 am

I am not 100% sure that I had a mix of different extensions checked out in the past, but I have not noticed all my files getting checked in. I use this a lot. If wildcards are supported on checkout I would call it a bug if they are not supported on undo checkout and check in. I have been using the same version of Vault for a couple of months now (3.1.8.3771). Will this bug be fixed in 3.5?

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

Post by lbauer » Wed Jun 14, 2006 9:56 am

It probably won't make it into the CLC for 3.5, but might be included in a maintenance release.

You will be able to undo checkout of files in a wildcard Search results in the Vault GUI Client for 3.5.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply