假设我在\testfolder中有一个目录,最新的目录当前在/main/10。我知道导致testfolder@@/main/6的操作是删除一个名为test.txt的文件。
在将"testfolder@@/main/6“和" test.txt”作为输入的脚本中,可以完成什么清除工具操作序列,并将test.txt的内容分类到那个时候?
我能想到的一种方法是获取/main/6操作的时间,创建一个将配置规范-time设置为该时间的视图,然后在目录中cat test.txt。但是我想知道我是否可以用一种更简单的方式来做这件事,而不涉及操作配置规范,也许是通过"cleartool find“和扩展路径名
发布于 2010-05-28 15:45:55
如果您正在使用dynamic view,您应该直接浏览testfolder的,以便访问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 该操作添加了:
在这里,当我进入testfolder@@/main/5时,test.txt@@/main/LATEST是不正确的...
从技术上讲,这是一个邪恶双胞胎的案例:存在两个具有不同历史的同名对象(一个在testfolder@@/main/5中,一个在testfolder@@/main/10中)。
要恢复以前的test.txt (一个like rollbacking a file),需要删除当前的test.txt并恢复当前移动到Folder2的旧test.txt。(cleartool move)
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 ../testFolder2https://stackoverflow.com/questions/2927206
复制相似问题