在ClearCase中创建新的子目录结构? [英] Creating a new subdirectory structure in ClearCase?

查看:71
本文介绍了在ClearCase中创建新的子目录结构?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是ClearCase的新手,到目前为止,我已经习惯了SVN。因此,对于创建包含多个文件的新目录结构到ClearCase所需采取的步骤,我有些困惑。

I'm a ClearCase newbie and up until now have been used to SVN. Therefore, I'm a bit confused on the steps I need to take to create a new directory structure containing multiple files to ClearCase.

因此,例如,有一个

\ParentDirectory
    \ChildDirectory1
        \File1
        \File2
    \ChildDirectory2
    \ChildDirectory3
        \File1
    \ChildDirectory4

如果我想向该结构中添加一个新的子目录ChildDirectory5,它将包含许多其他文件,我该如何处理?从我的阅读中,我首先需要检出父目录,然后使用mkelem命令创建每个子目录和文件。

If I want to add a new subdirectory to this structure, ChildDirectory5, which will contain a number of other files, how do I go about this? From what I have been reading, I will need to first of all check out the parent directory and then use the mkelem command to make each subdirectory and file.

但是,我已经在本地计算机上创建了必要的文件和目录,因此我只需要以某种方式将其检入ClearCase。使用SVN,我所需要做的就是将父文件夹复制到已签出的存储库中,然后执行添加&

However, I have already created the necessary files and directories on my local machine so I just need to check them into ClearCase somehow. With SVN, all I would've needed to do was copy the parent folder into a checked out repo and do an add & commit command sequence on it.

推荐答案

如何使用ClearCase递归添加到源代码控制...?,您必须使用clearfsimport来实现您的意思(检出父目录,元素的mkelem)

As explained in How can I use ClearCase to "add to source control …" recursively?, you have to use clearfsimport which does what you are saying (checkout the parent directories, mkelem for the elements)

clearfsimport -preview -rec -nset c:\sourceDir\ChildDirectory5 m:\MyView\MyVob\ParentDirectory

请注意:


  • -预览选项:它允许检查会发生什么而无需实际执行任何操作。

  • '*'仅在Windows环境中使用,以便导入目录的内容

  • -nset选项(有关nset的信息,请参见我的先前的答案)。

  • -preview option: it will allow to check what would happen without actually doing anything.
  • '*' used only in Windows environment, in order to import the content of a directory
  • -nset option (see my previous answer about nset).

对于需要导入大量数据的初始化阶段,我建议使用动态视图 a:您可以快速查看视图,而无需进行任何更新(例如不更新工作空间):

ClearCase允许以两种方式访问​​数据:

I would recommend dynamic view for those initialization phases where you need to import a lot of data: you can quickly see what your view looks like without making any update (like "without updating your workspace"):
ClearCase allows to access the data in two ways:


  • 快照视图(类似于SVN工作区,除了所有.svn实际上都被外部化到工作区之外的视图存储中)

  • dynamic查看:您的所有文件都可以通过网络看到(即时访问/更新)

这篇关于在ClearCase中创建新的子目录结构?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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