Missing Workspace.GetShelvedChanges API method in Beta3

Hi all,

Can someone tell me what happend toWorkspace.GetShelvedChanges in TFS Beta 3.

It used to be located in the Microsoft.VisualStudio.Hatteras.Client namespace in TFS Beta 2.

I can find the Workspace class in the Microsoft.TeamFoundation.VersionControl.Client.Workspace namespace but theGetShelvedChanges method no longer exists.

I used that in my build script to be able to build the latest checked-in source + an additional shelveset. The only workaround I found is to unshelve on the build machine, copy the files that were unshelved in memory, undo my unshelve and overwrite the files on disk. Is there a better approach?

Thanks

[693 byte] By [Pierre-YvesTroel] at [2007-12-17]
# 1
It's now called QueryShelvedChanges(). Our philosophy in general with Get* vs. Query* is that Query* methods allow you to specify null to mean all and Get* methods expect something particular to be specified (though I'm sure there are particular cases that straddle the two). The name of the this one got changed in cleaning things up a bit.

Buck

BuckHodges at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 2
Hi Buck,

I am actually using QueryShelvedChanges() but it just return you information about the shelveset (PendingSet[]), it does not actually perform a get like the GetShelvedChanges() used to do.

Is there a way to do a get of a shelved file once you get hold of the PendingSet[] returned by QueryShelvedChanges().

Thanks

Pierre-YvesTroel at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 3
I think I misunderstood. If I understand correctly now, you want to download the file that's been shelved. In the beta 3 API (and RTM as well), there's a DownloadShelvedFile() method on the PendingChange you get back from QueryShelvedChanges().

Buck

BuckHodges at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 4
Hi Buck,

That's exactly what I was looking for,

thanks a lot.

Pierre-YvesTroel at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 5
Great! Sorry about the delay in responding.

Buck

BuckHodges at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...

Visual Studio Team System

Site Classified