如何为类似的流运行clearfsimport命令 [英] How to run clearfsimport command for similar streams

查看:56
本文介绍了如何为类似的流运行clearfsimport命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个流

Int 
 |--> Dev

我要确保 Dev

我已经从 Int 重新定义了 Dev 流的基础。流,但我知道它不会使其完全复制为Int。

I want to make sure Dev has everything similar to Int stream word to word.
I have already rebased Dev stream from Int stream, but I know its not going to make it exact replica of Int.

我知道我应该使用 clearfsimport 命令,但我不明白它的语法是什么。

I know I should be using "clearfsimport" command but I could not understand whats the syntax for it.

请使用以下假设帮助该命令,我使用的是Solaris,将使用cleartool命令线路界面

Please help me with the command using below assumptions, I am on solaris and will be using cleartool command line interface


  • 项目vob目录- / vobs / HowDoI

  • 流名称-> HowdoI_Int

  • Int 视图名称-> HowDoI_int_View

  • Dev流名称-> HowDoI_Dev

  • Dev视图名称-> HowDoI_Dev

  • project vob directory - /vobs/HowDoI
  • Stream name -> HowdoI_Int
  • Int View name -> HowDoI_int_View
  • Dev Stream name -> HowDoI_Dev
  • Dev View name -> HowDoI_Dev

推荐答案

请参阅 如何使用ClearCase来 clearfsimport 语法

See "How can I use ClearCase to "add to source control …" recursively?" for an example of clearfsimport syntax.

在您的情况下,假设两个视图都已启动并且挂载了VOB:

In your case, assuming both views are started, and the vob is mounted:

clearfsimport -preview -rec -rmname -nset /view/HowDoI_int_View/vobs/HowDoI /view/HowDoI_dev_View/vobs/HowDoI

删除-预览,当您认为命令执行了您认为应该的操作时。

Remove the -preview when you think the command does what you think it should.

请注意- rmname 选项,以便从Int到Dev获取镜像:

Dev 中存在的任何元素 Int 中不存在的将是来自 Dev rmname $ c>,完全保留为 Int (表示没有 extra 元素)

Note the -rmname option in order to get a mirror image from Int to Dev:
Any element present in Dev which are not present in Int will be rmname from Dev, leaving it exactly as Int (meaning without extra elements)


错误:必须在UCM视图中设置为活动。

Error: Must be set to an activity in a UCM view.

这意味着您必须先设置一个活动目的地视图(您要在其中导入文件的视图)中:

That means you must set an activity first in the destination view (the one in which you are importing files):

cd /view/HowDoI_dev_View/vobs/HowDoI
cleartool mkact import_deom_int

这篇关于如何为类似的流运行clearfsimport命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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