BUG: GET on a Pinned and Labeled File Gets Wrong Version
ID: Q238182
|
The information in this article applies to:
-
Microsoft Visual SourceSafe, 32-bit, for Windows versions 5.0, 6.0
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
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article.
MORE INFORMATION
- Create a new project. (for example, $/myproj).
- Set a working folder for the project. (for example, C:\Myproj)
- Add a file to the project. (for example, Myfile.txt)
- Check out, modify, and check in the Myfile.txt so that there are two versions.
- Pin Myfile.txt at version one.
- Select the $/myproj project.
- Label $/myproj with the label "test".
- Unpin Myfile.txt
- Show the history of Myfile.txt and select the version that displays the label
- 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.
REFERENCES
Additional information can be found in the Visual SourceSafe product
documentation by searching for these titles:
-pin, how-to
-get latest version command
Additional query words:
pin unpin
Keywords : kbSSafe500bug kbSSafe600bug kbDSupport kbBug
Version : WINDOWS:5.0,6.0
Platform : WINDOWS
Issue type : kbbug