I assume that you want "the contents of the folder with change set X" and not "the contents of the folder that was part of change set X"
GetItems is the right call to use, just go to the version specification for the set of changes you are interested in.
http://msdn.microsoft.com/en-US/library/bb138911.aspx
therefore, if you already have a link to an instance of VersionControlServer:
var myFolderAtChangeset17 = versionControlServer.GetItems("$/MyFolder", new ChangesetVersionSpec(17), RecursionType.Full);
If I misunderstood and you want “the contents of the folder that was part of change set X”, there are several different ways to do this, but getting the change set using GetChangeset and just filtering Changes is quite simple.
source
share