logo

Previous Thread:   Multiple Releases in Visual SourceSafe

9/20/2005 12:59:02 PM    IVssVersion.Action member doesn't have enough info
This question is about the "Action" member of the IVssVersion interface.  I'm  
  
using the C++ interface and ssapi.h, in case that makes any difference.  
  
I'm trying to reconstruct a project history.  I've managed to get an  
  
IVssVersions object for the project, then create an enumerationm which I  
  
iterate, and get individual IVssVersion objects.  
  
My basic problem is that for versions representing the addition of files or  
  
folders to the project, the "action" string member contains only the text  
  
"added ".  (That's right, it has "added" plus one space character.)  
  
I need to be able to answer the obvious question: added what?  
  
You can get an IVssItem for the version, and one would assume that this item  
  
represents the file/folder that was added.  Buit it doesn't - the item  
  
corresponds to the parent project to which the file/folder was added.  
  
All of the examples I could find showing how to dump history nimbly  
  
sidesteepped this issue by not having any examples of files being added.  But  
  
surely the information is available, but in a convoluted manner.  So I guess  
  
my question is - what are the convolutions?  
  
And in case it matters, i suspect that my question also applies to the "file  
  
deleted" action.

10/24/2005 11:42:39 PM    Re: IVssVersion.Action member doesn't have enough info
Unfortunately, this information is not accessible via this interface.  In an  
  
application I wrote to create an rss feed around sourcesafe, I actually  
  
execute and parse the results of the command line -history specifying the  
  
particular version as a range.  
  
HTH,  
  
Wayne  
  
"Fletcher Dunn" <FletcherDunn@discussions.microsoft.com> wrote in message  
  
news:B6E4E468-7847-4C7A-A751-E8AD17C24A5E@microsoft.com...