Microsoft KB Archive/177894

= BUG: Recalculate Links Increments InterDev Files Under Source Control =

Article ID: 177894

Article Last Modified on 12/1/2003

-

APPLIES TO


 * Microsoft Visual Studio 97 Service Pack 3
 * Microsoft Visual InterDev 1.0 Standard Edition
 * Microsoft Visual SourceSafe 4.0 Standard Edition
 * Microsoft Visual SourceSafe 5.0 Standard Edition

-



This article was previously published under Q177894



SYMPTOMS
Some Microsoft Visual InterDev files in a project that have been placed under source control may show increments to their version number when no changes have actually taken place. This occurs when recalculate links is run, or if the file is checked out and back in, although no changes are made to the file. The comment below is added in SourceSafe:

Page changed because one of its dependencies changed.



CAUSE
The cause is a bug in Visual SourceSafe version 5.0. Visual SourceSafe increments a file's version every time a file containing Visual SourceSafe keywords is checked in. This behavior occurs even though the SourceSafe option for "Check in Unchanged Files" is set to "Undo Check out".



RESOLUTION
There is currently no workaround from Visual InterDev that allows the use of keywords and prevents the version from being incremented.



STATUS
Microsoft has confirmed this to be a bug in Microsoft Visual SourceSafe version 5.0. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.



MORE INFORMATION
The Recalculate Links command causes the incrementing behavior to occur because it checks out and checks in each file in the Web project. This can dramatically increase the number of erroneous versions of a file.

The following keywords incorrectly increment a file's version number every time the file is checked out: $Log: $ $Revision: $ $History: $ $Header: $ $Date: $ Other keywords, such as $Author: $ increments only the version when the information they reference is changed. Other keywords include: $Archive: $ $Author: $ $Header: $ $Logfile: $ $Modtime: $ $Workfile: $ $NoKeywords: $

Steps to Reproduce Behavior
 In the SourceSafe Admin tool, set "Expand keywords in files of type:" to "*.asp".  In a Visual InterDev project, create a new .asp file, and add the following text: $Revision: $  Visual SourceSafe version number NOTE: Any one of the keywords mentioned above causes this behavior.  Select 'Enable Web Source Control' from the Project menu. In Visual SourceSafe Explorer, in the Options dialog box from the Tools menu, ensure that 'Check in Unchanged Files' is set to 'Undo Check out.' In Visual InterDev, right-click the Project name and select Recalculate Links.</li> In Visual SourceSafe Explorer select Show History of the file. Note that the file is modified and a new version is created even though the option is set to Undo the checkout.</li></ol>

<div class="references_section">