1/ 为什么不只加载 \Department\ProductGroup\Product1\Development ?
load /Department/ProductGroup/Product1/Development
注意:您可以使用 ' /
',比 ' \
' 更容易,并且 Windows 配置规范确实可以正确解释它。
1之二/如果你想保持一般规则,你可以使用一些“清洁规则”
考虑这个配置规范
(首先在动态视图中对其进行测试,以便快速检查——即没有无休止的更新重新加载步骤——如果结果确实符合您的需要:文件在下面Development
,其他任何地方都没有文件)
element * CHECKEDOUT
# read/write selection rule for the directory and sub-directory
# where you need to work
element /Department/ProductGroup/Development/... .../mybranch/LATEST
element /Department/ProductGroup/Development/... /main/LATEST -mkbranch mybranch
# specific selection rule for the parent directories of Development
# those rules do not contain a mkbranch directive
element /Department/ProductGroup .../mybranch/LATEST
element /Department/ProductGroup /main/LATEST
element /Department .../mybranch/LATEST
element /Department /main/LATEST
# cleaning rule right there: anything outside /Department/ProductGroup/Development
# will not be selected, hence not loaded
element /Department/* -none
load \Department
这样,您始终保持相同的加载规则load \Department
,并且您的选择规则为您进行清理。
2/关于您的路径问题,您可以使用 Symlink,但最简单的方法是使用subst
subst X: c:\dev\Department\ProductGroup\Product1\Development
您可以继续在 X:\ 中使用您的快照视图
但这不起作用,因为 ClearCase 需要:
出于同样的原因,在 windows 上使用Junction的硬链接将不起作用:
c:\dev>junction Product1 Department\ProductGroup\Product1
Junction v1.05 - Windows junction creator and reparse point viewer
Copyright (C) 2000-2007 Mark Russinovich
Systems Internals - http://www.sysinternals.com
Created: C:\dev\Product1
Targetted at: C:\dev\Department\ProductGroup\Product1
C:\cc\xxx>ct ls
cleartool: Error: Pathname is not within a VOB: "."
所以你可以做的是:
subst X: c:\dev
结合 1/ 中的特定加载规则或 1bis/ 中的清洁规则将为您提供:
2bis/“迂回”解决方案:
从 ClearCase 资源管理器中,Development
从移动Department\ProductGroup\Product1
到Department
! 该动作将记录在 ' mybranch
' 版本树中,并且对于在/main/LATEST
.
然后subst
从上面,你将在 'mybranch' 中工作Department\Development
。
X:\Department\Development
当你想上市时,采取相反的行动。