VSS2005. How to create a broken database

While debugging Microsoft Visual SourceSafe support in TeamCity, I had found out quite easy case where VSS 2005 Automation api fails.
So, to reproduce it do the following:
  • Create Folders A,B,C
  • In each folder create a file. File names should be different.
  • Delete A
  • Rename C to A
  • call get_Versions on parent folder. You'll receive exception of loading IVSSItem from IVSSVersion object


Moreover, for that case, IVSSItem::Deleted getter returns false when calling to the file, that was created in folder A(before rename!)

Any idea of workarounds?
comments powered by Disqus