GETLABELDIFFS not returning correct information

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

Moderator: SourceGear

Post Reply
Sourav
Posts: 25
Joined: Fri Sep 09, 2005 9:30 am

GETLABELDIFFS not returning correct information

Post by Sourav » Mon Oct 31, 2005 3:21 pm

There appears to be several problems with running GETLABELDIFFS from the command-line (vault.exe).

1. The MOVE action is reported incorrectly. The file absp_CupdPrep.sql is MOVEed from folder Currency to Remap. However, GETLABELDIFFS reports it as Currency (MoveTo) and Remap (MoveFrom). It is backwards.
2. Also, the file itself is not reported, only the project folders are shown. Is there a way to include the filename?

[10/31/2005 11:01:16 AM] Beginning label "baseline"
[10/31/2005 11:01:16 AM] Label "baseline" succeeded
[10/31/2005 11:02:49 AM] Preparing data to begin transaction
[10/31/2005 11:02:49 AM] Beginning transaction
[10/31/2005 11:02:49 AM] Move $/USERS/achen/Currency/absp_CupdPrep.sql
[10/31/2005 11:02:49 AM] Ending the transaction
[10/31/2005 11:02:49 AM] Transaction completed successfully
[10/31/2005 11:03:11 AM] Beginning label "baseline.1"
[10/31/2005 11:03:11 AM] Label "baseline.1" succeeded

C:\Projects\Working\BOOTSTRAP>vault.exe -host myhost -repository myrepo GETLABELDIFFS $/USERS/achen "baseline" "baseline.1"
<vault>
<history fromLabel="baseline" fromDate="10/31/2005 11:01:19 AM" toLabel="baseline.1" toDate="10/31/2005 11:03:13 AM">
<item txid="217118" date="10/31/2005 11:02:51 AM" name="achen/Remap" version="28" user="achen" action="MoveFrom" />
<item txid="217118" date="10/31/2005 11:02:51 AM" name="achen/Currency" version="18" user="achen" action="MoveTo" />
</history>
<result success="yes" />
</vault>

3. The SHARE action is incomplete. It only shows the project folder, not the filename that is actually SHAREed.

[10/31/2005 11:07:16 AM] Preparing data to begin transaction
[10/31/2005 11:07:16 AM] Beginning transaction
[10/31/2005 11:07:16 AM] Share $/USERS/achen/Remap/absp_CupdPrep.sql
[10/31/2005 11:07:16 AM] Ending the transaction
[10/31/2005 11:07:16 AM] Transaction completed successfully
[10/31/2005 11:07:42 AM] Beginning label "baseline.2"
[10/31/2005 11:07:42 AM] Label "baseline.2" succeeded

C:\Projects\Working\BOOTSTRAP>vault.exe -host myhost -repository myrepo GETLABELDIFFS $/USERS/achen "baseline.1" "baseline.2"
<vault>
<history fromLabel="baseline.1" fromDate="10/31/2005 11:01:19 AM" toLabel="baseline.2" toDate="10/31/2005 11:07:45 AM">
<item txid="217119" date="10/31/2005 11:07:19 AM" name="achen/Currency" version="19" user="achen" action="Share" />
</history>
<result success="yes" />
</vault>

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

Post by lbauer » Mon Oct 31, 2005 5:00 pm

What version of Vault are you using?

Are there any errors reported in the Vault server log file when you run these commands?
Linda Bauer
SourceGear
Technical Support Manager

Sourav
Posts: 25
Joined: Fri Sep 09, 2005 9:30 am

Post by Sourav » Mon Oct 31, 2005 5:29 pm

Linda, there are no errors in the sgvault.log file. Here are the versions I am running:

[10/31/2005 9:47:34 AM] Version Check: This Vault client is version 3.1.1.3506
[10/31/2005 9:47:35 AM] Version Check: Your Vault server is version 3.1.1.3506

Thanks.

Tonya
Posts: 916
Joined: Thu Jan 20, 2005 1:47 pm
Location: SourceGear

Post by Tonya » Tue Nov 01, 2005 11:29 am

I am having a hard time reproducing these issues. Could you please upgrade Vault to the most recent version 3.1.3 and let me know if the problems still exist? If they do, please report any differences that you notice between 3.1.1 and 3.1.3.

Tonya Nunn
SourceGear Support

Sourav
Posts: 25
Joined: Fri Sep 09, 2005 9:30 am

Same result with 3.1.3

Post by Sourav » Tue Nov 01, 2005 5:21 pm

I installed 3.1.3 and get the same result as 3.1.1.

Here is the message log and the steps:

1. Labeled "baseline"
2. Moved file absxp_check_dll.sql from FolderA to FolderB.
3. Labeled "baseline.1"

[11/1/2005 3:01:48 PM] Version Check: This Vault client is version 3.1.3.3538
[11/1/2005 3:01:48 PM] Version Check: Your Vault server is version 3.1.3.3538
[11/1/2005 3:01:48 PM] Version Check: The following information was retrieved from the SourceGear website. No information was sent to SourceGear. You can disable this part of the version check from the Options dialog.
[11/1/2005 3:01:48 PM] Version Check: The most recent Vault release is version 3.1.3.3538
[11/1/2005 3:02:43 PM] Beginning label "baseline"
[11/1/2005 3:02:43 PM] Label "baseline" succeeded
[11/1/2005 3:02:52 PM] Preparing data to begin transaction
[11/1/2005 3:02:52 PM] Beginning transaction
[11/1/2005 3:02:53 PM] Move $/USERS/achen/FolderA/absxp_check_dll.sql
[11/1/2005 3:02:53 PM] Ending the transaction
[11/1/2005 3:02:53 PM] Transaction completed successfully
[11/1/2005 3:03:39 PM] Beginning label "baseline.1"
[11/1/2005 3:03:39 PM] Label "baseline.1" succeeded

Response:

C:\>vault.exe -host myhost -repository myrepo GETLABELDIFFS $/USERS/achen "baseline" "baseline.1"
<vault>
<history fromLabel="baseline" fromDate="11/1/2005 2:44:42 PM" toLabel="baseline.1" toDate="11/1/2005 3:02:56 PM">
<item txid="175718" date="11/1/2005 3:02:56 PM" name="achen/FolderB" version="3" user="admin" action="MoveFrom" />
<item txid="175718" date="11/1/2005 3:02:56 PM" name="achen/FolderA" version="4" user="admin" action="MoveTo" />
</history>
<result success="yes" />
</vault>

Same result.

1. The names and actions are backwards.
2. The filename is missing.


The HISTORY command provides the correct information, so what is wrong with GETLABELDIFFS?

C:\>vault.exe -host myhost -repository myrepo HISTORY $/USERS/achen
<vault>
<history>
<item txid="175718" date="11/1/2005 3:02:56 PM" name="achen/FolderA" type="130" version="4" user="admin" actionString="Moved absxp_check_dll.sql to $/USERS/achen/FolderB/absxp_check_dll.sql" />
<item txid="175718" date="11/1/2005 3:02:56 PM" name="achen/FolderB" type="120" version="3" user="admin" actionString="Moved absxp_check_dll.sql from $/USERS/achen/FolderA/absxp_check_dll.sql" />
<item txid="0" date="11/1/2005 3:02:56 PM" name="achen" type="90" version="6" user="admin" comment="baseline.1" actionString="Labeled baseline.1 " />
<item txid="0" date="11/1/2005 2:44:42 PM" name="achen" type="90" version="5" user="admin" comment="baseline" actionString="Labeled baseline " />
</history>
<result success="yes" />
</vault>

Tonya
Posts: 916
Joined: Thu Jan 20, 2005 1:47 pm
Location: SourceGear

Post by Tonya » Wed Nov 02, 2005 9:29 am

Thanks for the immense details. I have recreated the same scenario here and have logged these issues as bugs in our database to be resolved in a future Vault release. Sorry for the inconvenience.

Tonya

Sourav
Posts: 25
Joined: Fri Sep 09, 2005 9:30 am

When will this be fixed?

Post by Sourav » Mon Nov 07, 2005 7:12 pm

Please let me know when this will be fixed. Thank you.

Tonya
Posts: 916
Joined: Thu Jan 20, 2005 1:47 pm
Location: SourceGear

Post by Tonya » Tue Nov 08, 2005 10:45 am

I have scheduled this issue to be resolved in the Vault 4.0 release which will probably be next spring. Sorry that I don't have a more defined date for you.

Tonya

Post Reply