如何下载ClearCase的文件? [英] How to download a file from ClearCase?

查看:412
本文介绍了如何下载ClearCase的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

喜ClearCase的专家,

我只是想下载最新版清除案例一个文件,我有完整的路径和放大器;明确的情况下视图名称。此外,我们可以有把握地认为,只有一个分支。

我找了清除工具命令这里但是,他们的非似乎是有用的,我的目的。

我不想做结帐/办理入住手续等。我只想最新版本的文件。虽然,要求是相当简单的。我不能够得到这个工作,因为我看不到任何直接的方式来做到这一点。

请帮助。

附加信息:
 我使用与透明外壳扩展中心的Visual Studio 2012(C#,ASP.NET)。

任何帮助AP preciated !!


解决方案

在方法是使用<一个href=\"http://publib.boulder.ibm.com/infocenter/cchelp/v7r0m1/topic/com.ibm.rational.clearcase.cc_ref.doc/topics/ct_get.htm\"相对=nofollow> cleartool GET


  

使用get命令将文件元素的指定版本复制到您的快照视图。结果
  必须从快照视图的根目录或它下面的任何目录发出get命令。


例如:


  

在Windows系统上,复制 \\ dev的\\参考hello world \\文件foo.c @@ \\主\\ 2 C:\\ build目录


  cleartool GET -to C:\\建立\\ foo.c.temp \\ dev的\\参考hello world \\文件foo.c @@ \\主\\ 2

这是使用ClearCase的扩展路径访问一个给定的版本,如说明在ClearCase中,我怎么能在静态视图中查看旧版本的文件,在命令行?。结果
其他答案指向一个方法来访问文件与内容:

  cleartool找到yourFile -ver'brtype(aBranch)及和放大器;版本(... / aBranch /最新)及和放大器; !版本(... / aBranch / 0)'-exec'cleartool差异-Ser空$ CLEARCASE_XPN'

这会特意去找一个文件就某一分支的最新版本。

Hi ClearCase Experts,

I just want to download a the latest version of a file from Clear Case for which I have the complete path & Clear Case View Name. Also we can safely assume that there is only one branch.

I looked for Clear Tool Commands HERE but, non of them seems useful,for my purpose.

I don't want to do a checkout/check-in etc. I just want the latest version of file. Though, the requirement is fairly simple. I am not able to get this done because I don't see any direct way to do this.

Please Help.

Additional Info: I am using Visual studio 2012(C#,ASP.NET) with Clear Case Addons.

Any help appreciated!!.

解决方案

On way is to use 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.

Example:

On a Windows system, copy \dev\hello_world\foo.c@@\main\2 into the C:\build directory.

cleartool get -to C:\build\foo.c.temp \dev\hello_world\foo.c@@\main\2

This is using the ClearCase extended path for accessing a given version, as illustrated in "In ClearCase, how can I view old version of a file in a static view, from the command line?".
That other answer points to a way to access the content of a file with:

cleartool find yourFile -ver 'brtype(aBranch) && version(.../aBranch/LATEST) && ! version(.../aBranch/0)' -exec 'cleartool diff -ser empty "$CLEARCASE_XPN"'

That would look specifically for the LATEST version of a file on a given branch.

这篇关于如何下载ClearCase的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆