Linking Vault as Source Server to re-indexed .PDB files

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

Moderator: SourceGear

Post Reply
code
Posts: 19
Joined: Mon Jun 19, 2006 10:19 am

Linking Vault as Source Server to re-indexed .PDB files

Post by code » Fri Mar 27, 2009 4:21 am

Hi,

I was wondering if anyone has ever linked Vault as a Source Server to re-indexed .PDB files, so that when debugging in Visual Studio, the exact source version can be retrieved from the relavant repository? I have been looing at the Microsoft Debugging tools and there is some support for VSS, Team FS, Perforce and SVN but the scripts are written in Perl and my skills in this field do not exist!

You use srctool.exe to achieve this functionality when re-indexing the source reference stored in the .PDB files. If I can't link Vault directly, I will need to look at providing the source via HTTP or UNC network share, so the similar functionality can be achieved. I didn't want to store the source twice though if it can be pulled out of Vault directly. That would be really nice.

Thanks if anyone can help.

Tim

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

Re: Linking Vault as Source Server to re-indexed .PDB files

Post by jeremy_sg » Fri Mar 27, 2009 1:08 pm

I can safely say that this has never come up. I don't know of any reason it won't work, though. You should look at our API forum for examples of using the Vault client integration library, or look at using the vault command line client.
Subscribe to the Fortress/Vault blog

code
Posts: 19
Joined: Mon Jun 19, 2006 10:19 am

Re: Linking Vault as Source Server to re-indexed .PDB files

Post by code » Sat Mar 28, 2009 12:06 pm

Sadly Perl is not my bag so I'm a bit lost with it all at the moment.

Does anyone at Sourcegear know Perl who might be up for a challenge? I'm sure it would really add some kudos as another one of your developer tools :D

As it stands, I think I am going to try and configure a Subversion repository for specific source files and index that way.

I have used the Vault API in some small integration tasks for the company I work for; what would be the command line required to get a file from vault, specifying a label?

Also, is there any way you can browse Vault repositories over HTTP?

Thanks for your help.

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

Re: Linking Vault as Source Server to re-indexed .PDB files

Post by Beth » Tue Mar 31, 2009 2:35 pm

The command you want is GetLabel.
All of our command-line client documentation is posted here: CLC Documentation.

Also, you can browse the repository by going to the web client at http://<your Vault server>/vaultservice/vaultweb.
Beth Kieler
SourceGear Technical Support

code
Posts: 19
Joined: Mon Jun 19, 2006 10:19 am

Re: Linking Vault as Source Server to re-indexed .PDB files

Post by code » Wed Apr 01, 2009 10:12 am

Hi Beth,

Thanks for the reply. I got the getlabel stuff working and it is retrieving the files but visual studio still thinks there has been a problem.

Is there anyway to prevent the vault.exe command line from printing the XML response after the getlabel operation?

Also, can you use the web interface to view files by label or is it just file version?

Many thanks,

Tim

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

Re: Linking Vault as Source Server to re-indexed .PDB files

Post by Beth » Wed Apr 01, 2009 10:26 am

You might try redirecting the output to a dummy file.

The web client only allows by file version.
Beth Kieler
SourceGear Technical Support

code
Posts: 19
Joined: Mon Jun 19, 2006 10:19 am

Re: Linking Vault as Source Server to re-indexed .PDB files

Post by code » Wed Apr 01, 2009 11:11 am

Thanks Beth. That wasn't the problem in the end. The vault command line gets the file to a folder instead of a direct path including filename. The srcsvr functionality in visual studio was putting in the full path so it was creating one too many folders and then it couldn't find the file it downloaded.

All sorted now and working like a treat!!

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

Re: Linking Vault as Source Server to re-indexed .PDB files

Post by Beth » Wed Apr 01, 2009 11:19 am

Thanks for the update.
Beth Kieler
SourceGear Technical Support

Scottie
Posts: 10
Joined: Tue Jan 20, 2004 7:30 pm

Re: Linking Vault as Source Server to re-indexed .PDB files

Post by Scottie » Wed Aug 05, 2009 10:02 pm

Tim,
Any chance of you sharing your Perl Script either here, or at least back to the guys at Source Gear so that they might be able to provide something similar in the future.
(I assume you are the same Tim that was asking similar questions on StackOverflow - sorry to be hassling you from multiple angles but I'm keen to get this working in our environment)
Cheers,
Scott

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

Re: Linking Vault as Source Server to re-indexed .PDB files

Post by Beth » Fri Aug 07, 2009 1:37 pm

If you don't hear back from the user, you might consider trying the email function on the board to see if that will reach him. He might have unsubscribed from this thread already, but an email through the forum should notify him I think.
Beth Kieler
SourceGear Technical Support

gvdkamp
Posts: 12
Joined: Tue Apr 26, 2005 1:58 am

Re: Linking Vault as Source Server to re-indexed .PDB files

Post by gvdkamp » Mon Dec 19, 2011 4:01 am

We're also thinking about using a source server with Vault.

Is there someone with a working setup wo want to share tips and/or scripts?

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

Re: Linking Vault as Source Server to re-indexed .PDB files

Post by Beth » Mon Dec 19, 2011 2:24 pm

The users you were discussing this earlier in this thread appear to have posted some code here that may help you: http://stackoverflow.com/questions/6946 ... with-srcto.
Beth Kieler
SourceGear Technical Support

Post Reply