How to run clearfsimport command for similar streams

不打扰是莪最后的温柔 提交于 2019-12-17 09:58:58

问题


I have two streams

Int 
 |--> Dev

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.

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

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

  • 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

回答1:


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

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.

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)

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


来源:https://stackoverflow.com/questions/17069662/how-to-run-clearfsimport-command-for-similar-streams

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!