FIX: Links Are Not Updated After Renaming a Project
ID: Q195026
|
The information in this article applies to:
-
Microsoft Visual SourceSafe, 32-bit, for Windows 5.0
SYMPTOMS
After you rename a project in Visual SourceSafe, links of some of the
shared files under that project and its subprojects might not be updated
(they still point to the old name). Analyze build 2218 does not fix this
problem.
CAUSE
A project rename operation that would not corrupt the database apparently
failed or was stopped, but it might not update all of the links correctly.
RESOLUTION
To correct the problem, run analyze build 2220 or later with -f switch against the VSS database. Download and install the latest analyze utility from the following Web site if you do not have build 2220 or later:
http://support.microsoft.com/support/kb/articles/Q190/8/81.asp
NOTE: If you are using Visual SourceSafe 6.0, you can directly run analyze
from the <SourceSafe Installation directory>\Win32 directory.
The latest version of analyze is also available in Visual SourceSafe 6.0.
STATUS
Microsoft has confirmed this to be a bug in Visual SourceSafe 5.0.
This bug was corrected in Visual SourceSafe 6.0 (and analyze build 2220 or higher).
MORE INFORMATION
In Visual SourceSafe, one file can be shared among multiple projects.
Changes to the file from one project are automatically seen by other
projects sharing the file. This encourages code reuse.
Sharing a file means it exists equally in all the projects to which it is
shared. To accomplish this, Visual SourceSafe maintains links to the
projects where that file has been shared. Use the Links tab in the
Properties command on the File menu to see a list of projects sharing a
file.
However, if you rename a project that has shared files, the changed project
name might not be updated in all shared files under that project. As a
result, some of the files might have old project name as its link. Run
analyze build 8169 with -f switch to fix this problem.
Steps to Reproduce Behavior
- Start Visual SourceSafe Explorer.
- Create two Projects: $/Proj1 and $/Proj2.
- Create two sub projects: $/Proj1/SubProj1 and $/Proj2/SubProj2.
- Add a file to $/Proj1/SubProj1 (for example, File1.txt).
- Share the file from $/Proj1/SubProj1 to $/Proj2/SubProj2.
- Delete (not destroy) the Project $/Proj2/SubProj2.
- Rename $/Proj2 to $/RenamedProj2.
- Select $/Proj1/SubProj1/File1.txt.
- On the File menu, click Properties, and then click the Links Tab.
- You will find the following:
$/Proj1/SubProj1
$/Proj2/SubProj2 (deleted in this project)
- Close Visual SourceSafe Explorer.
- Run analyze build 2218 with -f swith against the database.
- Open Visual SourceSafe Explorer.
- Repeat steps 8 and 9.
- You will find the following again:
$/Proj1/SubProj1
$/Proj2/SubProj2 (deleted in this project)
Additional query words:
Keywords : kbSSafe500bug kbSSafe600fix
Version : WINDOWS:5.0
Platform : WINDOWS
Issue type : kbbug