Local File versions not reflecting remote file versions

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

Moderator: SourceGear

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

Post by Beth » Thu Jan 18, 2007 11:08 am

Can you send an email through to support at sourcegear.com and reference this post? Could you include your phone number as well?

jclausius
Posts: 3706
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Thu Jan 18, 2007 11:13 am

Besides the phone call, one quick thing you may want to try...

Instead of getting the version, setting it to the one you desire, and then setting it back, can you try creating a new VaultClientFile object, set its version, and then pass that to Get()?
Jeff Clausius
SourceGear

trevord
Posts: 11
Joined: Mon Jan 15, 2007 1:35 am

Post by trevord » Thu Jan 18, 2007 8:49 pm

Instead of getting the version, setting it to the one you desire, and then setting it back, can you try creating a new VaultClientFile object, set its version, and then pass that to Get()?
Do you mean using a VaultClientFile constructor instead of getting an instance from the treecache? If so can i pass the original vcfile to be copied as a parameter, or if using the default no-params constructor, what properties need to be set on the new instance so that it represents the correct file eg. FullPath?

jclausius
Posts: 3706
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Fri Jan 19, 2007 9:36 am

Yes. You don't really want to be modifying any Folder/File retrieved out of the tree cache.

What you want to use is a new object cloned from the item from the tree cache. The command line client code you posted has the example.
Jeff Clausius
SourceGear

trevord
Posts: 11
Joined: Mon Jan 15, 2007 1:35 am

Post by trevord » Fri Jan 19, 2007 5:05 pm

thanks, i'll try that and see how it goes

Post Reply