GETLABELDIFFS not returning correct information
Moderator: SourceGear
GETLABELDIFFS not returning correct information
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>
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>
What version of Vault are you using?
Are there any errors reported in the Vault server log file when you run these commands?
Are there any errors reported in the Vault server log file when you run these commands?
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager
Same result with 3.1.3
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>
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>
When will this be fixed?
Please let me know when this will be fixed. Thank you.