Vault client API needs a 'get local version'

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

Moderator: SourceGear

Post Reply
cturner@vsea
Posts: 4
Joined: Fri Apr 06, 2012 3:27 pm

Vault client API needs a 'get local version'

Post by cturner@vsea » Fri Apr 06, 2012 3:33 pm

We would like to be able to get the local version of a file as well as the remote version (the call to do that works nicely). The client obviously knows this, since it is displayed in the UI.

Thanks,
Charles

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

Re: Vault client API needs a 'get local version'

Post by Beth » Fri Apr 06, 2012 3:42 pm

I'm not sure I understand. Can you explain further what you mean?

A Get will retrieve from the Vault server no matter what the local version is at. If you go into history and get a historical version, then you can get the same version you have in the history. There is no function in the Vault GUI client to "get local version."
Beth Kieler
SourceGear Technical Support

GregM
Posts: 485
Joined: Sat Mar 13, 2004 9:00 am

Re: Vault client API needs a 'get local version'

Post by GregM » Sat Apr 07, 2012 8:04 pm

There are "Local Version" and "Remote Version' columns in the client that display the current version number in the repository and the last version retrieved from the repository.

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

Re: Vault client API needs a 'get local version'

Post by Beth » Mon Apr 09, 2012 10:11 am

So, you want a Get that will retrieve just the same version you currently have on disk, rather than performing the Get from history, is that correct?

There is a GetOperations.ProcessCommandGetVersion Method that will get any version you want, but it sounds like you might want it to detect the version on disk. Is that what you're looking for? If that's the case, there was a discussion on how to do that posted here: http://support.sourcegear.com/viewtopic ... ion#p66752.

I can still put in a feature request, but I'm just trying to be clear about what is wanted.
Beth Kieler
SourceGear Technical Support

GregM
Posts: 485
Joined: Sat Mar 13, 2004 9:00 am

Re: Vault client API needs a 'get local version'

Post by GregM » Mon Apr 09, 2012 11:34 am

Sounds to me like he just wants the numbers.

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

Re: Vault client API needs a 'get local version'

Post by Beth » Mon Apr 09, 2012 12:47 pm

Thanks.

cturner@vsea: Do you want to weigh in on what GregM had to say?
Beth Kieler
SourceGear Technical Support

cturner@vsea
Posts: 4
Joined: Fri Apr 06, 2012 3:27 pm

Re: Vault client API needs a 'get local version'

Post by cturner@vsea » Fri Apr 13, 2012 9:14 am

What GregM says is correct - I want to get the number from the "Local Version" column in the Vault client for each file. I will check out the link that Beth gave - thanks!

cturner@vsea
Posts: 4
Joined: Fri Apr 06, 2012 3:27 pm

Re: Vault client API needs a 'get local version'

Post by cturner@vsea » Fri Apr 13, 2012 9:23 am

OK, I read the thread that Beth pointed to. It looks like Tom888 wants the same thing that I do, and Linda Bauer has put the feature in for consideration in a future Vault version.

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

Re: Vault client API needs a 'get local version'

Post by Beth » Fri Apr 13, 2012 10:43 am

I will add your vote to that feature request then. Thank you for your feedback.

F: 13483
Beth Kieler
SourceGear Technical Support

cturner@vsea
Posts: 4
Joined: Fri Apr 06, 2012 3:27 pm

Re: Vault client API needs a 'get local version'

Post by cturner@vsea » Fri Apr 13, 2012 1:07 pm

Beth, thanks for your prompt and efficient attention to my issue.

Charles

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

Re: Vault client API needs a 'get local version'

Post by Beth » Fri Apr 13, 2012 1:12 pm

You're welcome.
Beth Kieler
SourceGear Technical Support

Post Reply