Wildcard option not working for 'checkout' command in 4.0.1

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

Moderator: SourceGear

Post Reply
suceava
Posts: 3
Joined: Fri Feb 04, 2005 3:40 pm
Contact:

Wildcard option not working for 'checkout' command in 4.0.1

Post by suceava » Mon Jun 25, 2007 8:33 am

I have been using the 'wildcard' option for the 'checkout' command in 3.x and it seems to no longer work in 4.0.1. I have something like this:
vault.exe checkout $/Projects/Source -wildcard AssemblyInfo.cs

This used to check out all my AssemblyInfo.cs files, but in 4.0.1 it seems to get ignored and all the files get checked out.

Any known issues with this option, or has it changed since 3.x? I haven't seen anything about it.

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Mon Jun 25, 2007 9:21 am

Sorry that we broke the checkout command for you. We tried to keep backward compatibility.

You can use the new built in NAnt-style wild card to do what you wanted:

Code: Select all

vault.exe checkout $/Projects/Source/**/AssemblyInfo.cs
That should check out all AssemblyInfo.cs files under the $/Projects/Source/ directory. You can use this style of wildcard in several commands.

suceava
Posts: 3
Joined: Fri Feb 04, 2005 3:40 pm
Contact:

Post by suceava » Mon Jun 25, 2007 9:33 am

Thanks, that did it.

edboykin
Posts: 9
Joined: Wed Oct 03, 2007 6:13 am

Post by edboykin » Wed Oct 03, 2007 6:16 am

Has the wildcard issue been resolved? I try to check out certain files using this command and I end up with everything checked out!
checkout -user "XX" -password "******" -host "XXXX.XXXXX.com" -repository "XXXX_50" -exclusive -wildcard *.res "$/XXXX_50/Trunk/Common/"

I am using
Vault client is version 4.0.4.15848
Vault server is version 4.0.1.15780

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

Post by lbauer » Wed Oct 03, 2007 6:41 am

This doesn't seem to be working properly.

I'll log a bug and we'll investigate.
Linda Bauer
SourceGear
Technical Support Manager

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Wed Oct 03, 2007 7:33 am

Does it work when you use the NAnt style wildcards?

Code: Select all

checkout -exclusive "$/XXXX_50/Trunk/Common/**/*.res"

edboykin
Posts: 9
Joined: Wed Oct 03, 2007 6:13 am

Post by edboykin » Wed Oct 03, 2007 7:52 am

Jeremy,
yes, the NAnt style checkouts work. I'm scripting an automated build in FinalBuilder 5.5 and it doens't support the NAnt styles. I currently have it scripted via a Command prompt execution using the NAnt but it woudl be eassier to maintain if I coudl use the Vault script in FinalBUilder..

I'm working with those guys as well to come up with a resolution.

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Fri May 30, 2008 3:06 pm

The Vault 4.1.2 CLC fixed this bug. Wildcards are again supported for checkout.
Subscribe to the Fortress/Vault blog

Post Reply