For example, if my tree looks like this:
Code: Select all
$
Current
Production
Database
Web
The closest command I found to accomplish this is ProcessCommandUndoChangeSetItem(int changeSetItemId). I'm having trouble figuring out what to use for the value of the changeSetItemId.
I've called ProcessCommandListChangeSet on the path I want to revert, but the collection of items I get back don't have any properties that seem to map to the change set item ID.
It appears this ID is an index (zero-based) into the list of all pending changes in a repository. So, I tried calling ProcessCommandListChangeSet(new [] { "$" }), but that took 10 or 15 minutes to complete.
What is the best way to accomplish what I want?