Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Clearcase cleartool问题_Clearcase_Cleartool - Fatal编程技术网

Clearcase cleartool问题

Clearcase cleartool问题,clearcase,cleartool,Clearcase,Cleartool,假设我在\testfolder有一个目录,最新的目录当前在/main/10。我知道生成testfolder@/main/6的操作是删除一个名为test.txt的文件 在一个脚本中可以完成的cleartool操作序列是什么?该脚本将testfolder@/main/6和test.txt作为输入,并将从那时起逐出test.txt的内容 我能想到的一种方法是获取/main/6操作的时间,创建一个config spec-time设置为该时间的视图,然后在目录中cat test.txt。但是我想知道我是否

假设我在\testfolder有一个目录,最新的目录当前在/main/10。我知道生成testfolder@/main/6的操作是删除一个名为test.txt的文件

在一个脚本中可以完成的cleartool操作序列是什么?该脚本将testfolder@/main/6和test.txt作为输入,并将从那时起逐出test.txt的内容

我能想到的一种方法是获取/main/6操作的时间,创建一个config spec-time设置为该时间的视图,然后在目录中cat test.txt。但是我想知道我是否可以用一种更简单的方法来实现这一点,而不需要操纵配置规范,也许可以通过cleartool查找和扩展路径名来实现。如果您使用的是,您应该直接浏览testfolder,以便访问test.txt的内容

OP补充道:

如果test.txt从testFolder移动到testFolder2,然后签入一个新版本的test.txt如何?在这种情况下,当我进入testfolder@@@main/5时,test.txt@@@main/LATEST不正确

从技术上讲,这是一个邪恶双胞胎的例子:存在两个同名的对象,一个在testfolder@@@main/5中,一个在testfolder@@@main/10中,具有不同的历史记录

您需要删除当前的test.txt并取回当前移动到Folder2的旧test.txt,才能取回以前的test.txt


注意:如果您想恢复文件夹中的test.txt,可以使用减法合并:谢谢VonC,如果test.txt从testFolder移到testFolder2,然后签入新版本的test.txt,怎么样?在这种情况下,当我进入testfolder@/main/5时,test.txt@/main/LATEST是不正确的……我所想到的序列看起来不像是邪恶的孪生兄弟。test.txt最初位于testFolder中,在clearexplorer中,您将test.txt移动到testFolder2。当您使用lshistory时,它会显示两个事件,一个签入testFolder以删除test.txt,另一个签入testFolder2以添加test.txt。但是,它始终是相同的test.txt对象。
cd m:\myview\myVob\path\to\testfolder

# In version 5 of testfolder, test.txt was still there
cd @@/main/5 

# Note: test.txt is a directory! only LATEST is a file
type test.txt@/main/LATEST 
 cd testFolder2
 cleartool checkout -c "move test.txt back to testFolder"
 cd ../testFolder
 cleartool checkout -c "get back test.txt from testFolder2"  
 cleartool rmname test.txt
 cleartool move ../testFolder2/test.txt
 cleartool ci -nc .
 cleartool ci -nc ../testFolder2