当我们要改变一个element的comment的时候,我们要用到以下的命令:
cleartool chevent -replace -c "comment" filename
cleartool mkattr -replace PRNUM '"comment"' filename
当我们describe一个object的时候我们会看到:
c desc filename
version "filename@@/main/rl_dev_ebf/1"
created 25-Aug-17.09:03:31 by ABC
"PR# DR-5-001-001
DR-5-001-001"
Element Protection:
User : atakhel : r--
Group: clearusr : r--
Other: : r--
element type: compressed_file
predecessor version: /main/rl_dev_ebf/1
Attributes:
PRNUM = "DR-5-001-001"
当我们要修改comment DR-5-001-001 为DR-5-001-008的时候我们输入以下命令
cleartool chevent -replace -c "DR-5-001-008" filename
我们再describe filename的时候,我们会看到:
c desc filename
version "filename@@/main/rl_dev_ebf/1"
created 25-Aug-17.09:03:31 by ABC
"DR-5-001-008"
Element Protection:
User : atakhel : r--
Group: clearusr : r--
Other: : r--
element type: compressed_file
predecessor version: /main/rl_dev_ebf/1
Attributes:
PRNUM = "DR-5-001-001"
我们发现Attributes还是DR-5-001-001,再用以下命令
cleartool mkattr -replace PRNUM '"DR-5-001-008"' filename
然后我们会发现
c desc filename
version "filename@@/main/rl_dev_ebf/1"
created 25-Aug-17.09:03:31 by Yan Yang
"DR-5-001-008"
Element Protection:
User : atakhel : r--
Group: clearusr : r--
Other: : r--
element type: compressed_file
predecessor version: /main/rl_dev_ebf/1
Attributes:
PRNUM = "DR-5-001-008"