使用setcs命令时,Clearcase配置规范的行为异常 [英] Clearcase config spec behaves odd when using setcs command
问题描述
我的配置规范存储在文本文件中。以下是内容
I have config spec stored in a text file . Following are the content
element * CHECKEDOUT
element ...\lost+found\... -none
element \My\... MYF_R2.1.0.9.5179
element \My\... My_2.1.0.13.4875
element \My\... MyComponents_8_8_2011.6859
element \My\... My_2.1.0.13.7098
element \My\... My_2.1.0.13.8206
element \My\... My_2.1.0.13.433
element \My\... My_2.1.0.13.423
element \My\... My_2.1.0.13.3763
element \My\... My_2.1.0.13.5983
element \My\... My_2.1.0.13.7095
element \My\... My_2.1.0.13.5986
element \My\... My_2.1.0.13.8209
element \My\... My_2.1.0.13.437
element \My\... My_2.1.0.13.9321
element \My\... My_2.1.0.13.1548
element \My\... My_2.1.0.13.1537
element \My\... MyComponents_11_2_2011.461
element \My\... My_2.1.0.13.2649
element \My\... My_2.1.0.13.1534
element \My\... My_2.1.0.13.3760
element \My\... My_2.1.0.13.4872
element * /main/0
当我使用cleartool setcs命令到 element \My ... MyComponents_11_2_2011.461行时,配置规范会更新
When i use cleartool setcs command upto "element \My... MyComponents_11_2_2011.461" line the config spec is updated and remaining lines were neglected.
虽然我手动添加了它们,但是效果很好。
While i added them manually , it works fine.
有人知道为什么setcs命令会那样吗?
Any idea why setcs command behaves like that? is there any length restriction is there while using setcs command?
下面是我的setcs命令
Following is my setcs command
cleartool setcs -tag $ViewName $ConfigSpec
推荐答案
如果该文件中存在某种编码问题或换行问题,则只有在手动应用时该文件才能完全应用。
The only way this file isn't applied completely while applied manually if is there is some kind of encoding issue or newline issue in that file.
一种调试方法
- 手动应用
-
cleartool catcs -tag aViewTag> aFile
:请参见cleartool catcs
手册页:重定向文件中给定视图的配置规范的内容 - 将
aFile
与您的初始配置规范文件进行比较。
- apply it manually
cleartool catcs -tag aViewTag > aFile
: seecleartool catcs
man page: redirect the content of a config spec for a given view in a file.- compare
aFile
with your initial config spec file.
这篇关于使用setcs命令时,Clearcase配置规范的行为异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!