There are two issues I'm running into. First, I am unsure how to filter and sort the VaultTxHistoryItems in the order that changes were committed to our repository. I try to sort by the TxDate element of the returned list, but sometimes I get anachronistic file states. For example, I'll see that a transaction is claimed by the TxDate to have happened in 3/17/2002, but I can tell from the file's internal comments that the state was from 2011. These appear spuriously throughout the transaction history and I can't find a way to differentiate them from real history. Furthermore, sometimes transactions will have the same TxDate down to the tick (second, since vault doesn't appear to use ms resolution). This makes it hard to figure out the order TxHistoryItems should be in, so I'm using TxID as a backup when dates are the same. I can't use TxID in general because TxID is obviously not ordered by the time that the history occurred.
The second major issue is that the results appears to be missing comments from commits past around 2008/2011 (ominous year?). There are ~113,000 results returned by ProcessCommandVersionHistory and only about ~20,000 comments attached to the results. I wasn't around in the time-frame that comments are entirely missing, but I am assured by my team that there should be comments. If I track transactions down in the the Vault Standard GUI, I can see the that the transactions should have comments, but they don't show up in the VaultTxHistoryItems for some reason.
Here is my function call to get all history items:
Code: Select all
foreach (var i in ServerOperations.ProcessCommandVersionHistory(repoPath,
1,
VaultDateTime.Parse("1990-01-01"),
VaultDateTime.MaxValue,
0))
...
I tried searching around the forum, but did no t find anything that helped. Thanks in advance.