VaultHistoryItem problem

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

Moderator: SourceGear

Post Reply
gn1024
Posts: 9
Joined: Mon Sep 28, 2009 6:36 am

VaultHistoryItem problem

Post by gn1024 » Fri Feb 19, 2010 3:44 am

Hello,

I am using Server & Client v3.5.1.4786.

When I'm getting a history, sometimes Name and HistoryName fields are different.
Which one must be used to get the file from repository?

For example,
<item txid="22843" date="10.08.2006 11:53:58" name="_TRUNK/Installers" type="1" version="1" user="aantonov" txtype="10" historyname="_TRUNK/Installers_SPB" mi1="_clnt_DLL" mi2="" actionString="Added _clnt_DLL" />

Could you also describe the transaction types (txtype in my case, 10 = Add) and appropriate usage of Name, HistoryName, Mi1 and Mi2.
Thanks a lot!

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

Re: VaultHistoryItem problem

Post by lbauer » Fri Feb 19, 2010 11:14 am

Could you post the command you are using? Leave out passwords and server name.
Linda Bauer
SourceGear
Technical Support Manager

gn1024
Posts: 9
Joined: Mon Sep 28, 2009 6:36 am

Re: VaultHistoryItem problem

Post by gn1024 » Tue Feb 23, 2010 5:05 am

I slightly changed the source code of the client, which is Vault API exapmle to get all required fields with history. Then I executed it (vault.exe HISTORY) and it produced an XML file, containing transaction type - TxType in my case. These txtypes are actions performed by users in the past. For example, 70 = Create, 10 = Add, 80 = Delete, 130 = Move, 60 = CheckIn, etc. They come along with other parameters - Name, HistoryName, Mi1 and Mi2 - which contains information regarding paths the transactions performed on. Which parameters contain the paths depends on TxType, but I didn't find any information how to use them. For example, sometimes to get the full path I need to concatenate Name and Mi1 parameters, sometimes the source is Mi1 and the destination is Mi2, sometimes the Name contains the full path, etc.
So the problem is that I don't have clear documentation how to get the full path of transaction item(s) depending on particular transaction type.

Could you help me with this?
Thank you in advance.

gn1024
Posts: 9
Joined: Mon Sep 28, 2009 6:36 am

Re: VaultHistoryItem problem

Post by gn1024 » Thu Feb 25, 2010 2:25 am

Hi Guys,

Any update of this?
I am working in EMC Corporation and the task is urgent.

Thank you in advance.

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

Re: VaultHistoryItem problem

Post by lbauer » Thu Feb 25, 2010 10:24 am

We could use more information about what you're trying to accomplish. You might be able to use the commandline client for this, or there may be another way.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply