Troubleshooting
Problem
This technote explains why attempts to run []cleartool lsview
Symptom
SCENARIO:
Attempts to run cleartool lsview on Windows from a command prompt results in the following output:
C:\>cleartool lsview
* test_view \\host1\ccstg_c\Views\test_view2.vws
test_[demo] \\host1\ccstg_c\Views\test_[demo].vws
Note: The view test_[snap] has brackets in the name.
Attempts run cleartool lsview test_[snap] results in the following error:
C:>cleartool lsview test_[demo]
cleartool: Error: No matching entries found for view tag "test_[demo]".
According to the ClearCase Administration Guide, View tags must conform to the host platform. As Windows allows brackets in directory and file names, this naming convention should not fail on Windows. The cleartool utility however, uses the brackets [ ] as a wild card delimiter as illustrated below:
Attempts to run the lsview command from cleartool interactive results in the error:
cleartool>lsview test_[demo]
cleartool: Error: No match for wildcard: "lsview view[]"
Note: No other problems have been experienced with found with the view tag. View can be started and used without issues. The problem seems to be narrowed to the lsview command only.
Cause
This issue has been identified as defect PK37112.
Resolving The Problem
Changing the behavior of cleartool to accommodate this infrequent use case will have a larger impact on other operations, thus the decision was made by Product Management to exclude the resolution of this defect from future upgrades and releases due to the significant architectural changes required to implement the solution.
WORKAROUND:
Create the view tag without the brackets.
For existing views with the brackets in the tag, use the cleartool rmtag and cleartool mktag commands to resolve the issue.
Example:
C:\>cleartool rmtag -view test_[demo]
C:\>cleartool mktag -view -tag test_demo \\host1\ccstg_c\Views\test_[demo].vws
Review the ClearCase Command Reference Guide on the topic of mktag and rmtag (cleartool man mktag/rmtag) for more information.
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21254477