Microsoft KB Archive/238182

= FIX: GET on a Pinned and Labeled File Gets Wrong Version =

Article ID: 238182

Article Last Modified on 2/22/2007

-

APPLIES TO


 * Microsoft Visual SourceSafe 5.0 Standard Edition
 * Microsoft Visual SourceSafe 6.0 Standard Edition
 * Microsoft Visual SourceSafe 6.0C

-



This article was previously published under Q238182



SYMPTOMS
If a file was pinned when a label was applied to its parent project, and you GET the file at that label after it has been unpinned, you will not get the pinned version.



RESOLUTION
If you GET the parent project at the label, the correct version of the file is retrieved.



STATUS
This bug was corrected in Microsoft Visual SourceSafe 6.0d.



MORE INFORMATION

 * 1) Create a new project. (for example, $/myproj).
 * 2) Set a working folder for the project. (for example, C:\Myproj)
 * 3) Add a file to the project. (for example, Myfile.txt)
 * 4) Check out, modify, and check in the Myfile.txt so that there are two versions.
 * 5) Pin Myfile.txt at version one.
 * 6) Select the $/myproj project.
 * 7) Label $/myproj with the label "test".
 * 8) Unpin Myfile.txt
 * 9) Show the history of Myfile.txt and select the version that displays the label
 * 10) Get the labeled version.

Note that you will get a copy of version two of the file, where you might have expected version one, which was the the version it was pinned to when the label was applied.

If you perform a GET on the same label from the command line: ss get $/myproj/myfile.txt -VLtest
 * If the database has been updated to the Visual SourceSafe 6.0 format, you will see the behavior described in the SYMPTOMS section.
 * If the database has not been updated to the Visual SourceSafe 6.0 format, version one will be retrieved.

