ProcessCommandGetVersionToLocationOutsideWorkingFolder issue
Posted: Tue Sep 14, 2010 11:24 am
I'm trying to get the files in a folder as they were at a specific time, just like the "View Tree" / "Get Tree" operations in the Vault client.
I'm currently trying this:
This gives me the list of folder versions - so far so good. Then I'm trying to get the files using this (using one of the array items):
That seems to work fine for the first versions. However, after a bunch of versions it seems to get me folder versions which are in the future (and definitively not the ones shown by the client "View Tree"); in my case some 40 versions or so off after about 2000 folder versions. I was unable to determine exactly where the shift comes from, but that typecast to (int) for the version looks odd to me. However, I didn't see any other version which I could supply either.
So, what's the way to do it?
I'm currently trying this:
Code: Select all
VaultTxHistoryItem[] txHistoryItems = ServerOperations.ProcessCommandVersionHistory(...)
Code: Select all
GetOperations.ProcessCommandGetVersionToLocationOutsideWorkingFolder(repoPath, (int)txHistoryItem.Version, options, destPath);
So, what's the way to do it?