cleartool问题 [英] cleartool question
问题描述
假设我在\testfolder有一个目录,而最新的目录当前在/ main / 10。我知道导致testfolder @@ / main / 6的操作是删除名为test.txt的文件。
Lets say I have a directory at \testfolder, and the latest is currently at /main/10. I know that the operation resulting in testfolder@@/main/6 is to remove a file named test.txt.
可以在脚本中执行的一系列cleartool操作,这些脚本将以 testfolder @@ / main / 6和 test.txt作为输入,并且
What's a sequence of cleartool operations that can be done in a script that will take "testfolder@@/main/6" and "test.txt" as input, and will cat out the contents of test.txt as of that time?
我能想到的一种方法是获取/ main / 6操作的时间,创建一个视图将config spec -time设置为该时间,然后在目录中放置test.txt。但是我想知道是否可以通过一种不涉及配置规范的简单方法来做到这一点,也许可以通过 cleartool find和扩展路径名
One way I can think of is to get the time of /main/6 operation, create a view with config spec -time set to that time, and then cat the test.txt at the directory. But I'm wondering if I can do this in a easier way that doesn't involve manipulating config specs, perhaps through "cleartool find" and extended path names
推荐答案
如果您使用的是动态视图,您应该直接浏览 testfolder 的扩展路径名 ,以访问<$ c的内容$ c> test.txt 。
If you are using a dynamic view, you should be explore directly the extended pathnames of testfolder
in order to access the content of 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
OP添加:
The OP adds:
test.txt $ c如何$ c>从
testFolder
移到testFolder2
,然后是新版本的test。 txt
已签到?在此,当我进入testfolder @@ / main / 5
时,test.txt @@ / main / LATEST
是不正确...
how about if
test.txt
was moved fromtestFolder
totestFolder2
, and then a new version oftest.txt
is checked in? In this when I go intotestfolder@@/main/5
,test.txt@@/main/LATEST
is incorrect...
从技术上讲,这是邪恶双胞胎的情况:2个同名物体存在(在 testfolder @@ / main / 5
中一个,在 testfolder @@ / main / 10
中一个)历史记录。
Technically, this is a case of evil twins: 2 objects of the same names exists (one in testfolder@@/main/5
, one in testfolder@@/main/10
) with different history.
您需要恢复以前的 test.txt
(a 就像回滚文件一样),删除当前 test.txt
并取回当前移至Folder2的旧文件。 ( cleartool移动
)
You need, to get back the former test.txt
(a like rollbacking a file), remove your current test.txt
and get back the old one currently moved to Folder2. (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 ../testFolder2
这篇关于cleartool问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!