您好 ClearCase 专家,
我只想从 Clear Case 下载最新版本的文件,我有该文件的完整路径和 Clear Case View 名称。我们也可以放心地假设只有一个分支。
我寻找清除工具命令 HERE但是,对于我的目的来说,它们似乎都没有用。
我不想进行 checkout / checkin 等操作。我只想要最新版本的文件。不过,要求相当简单。我无法完成此操作,因为我没有看到任何直接的方法来执行此操作。
请帮忙。
附加信息: 我正在使用带有 Clear Case Addons 的 Visual studio 2012(C#,ASP.NET)。
感谢任何帮助!!.
最佳答案
方法是使用cleartool get
.
Use the get command to copy a specified version of a file element into your snapshot view.
You must issue the get command from the root directory of a snapshot view or any directory below it.
示例:
On a Windows system, copy
\dev\hello_world\foo.c@@\main\2
into theC:\build directory
.
cleartool get -to C:\build\foo.c.temp \dev\hello_world\foo.c@@\main\2
这是使用 ClearCase 扩展路径来访问给定版本,如“In ClearCase, how can I view old version of a file in a static view, from the command line? ”中所示。
另一个答案指出了一种访问文件内容的方法:
cleartool find yourFile -ver 'brtype(aBranch) && version(.../aBranch/LATEST) && ! version(.../aBranch/0)' -exec 'cleartool diff -ser empty "$CLEARCASE_XPN"'
这将专门查找给定分支上文件的最新版本。
关于c# - 如何从 ClearCase 下载文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18715706/