我今天尝试创建基线,ClearCase Explorer 崩溃了(似乎是在它完成之后,但显然不是。)
我尝试重新创建基线,但它给了我一个错误,说有一些基线是“in_progress”,因此无法继续。
我删除了基线,并且我正在尝试删除“in_progress”标签类型。 当我删除 lbtype 时,它表示目录已锁定。
我执行了 lslock -all 并删除了项目和基线上的锁定,现在当我执行 lslock -all 时没有列出任何内容。
我尝试删除“in_progress”lbtype,但它仍然显示某些内容已锁定。还有其他方法可以找出阻止其工作的原因吗?
我知道这可能会令人困惑,因此如果需要任何澄清,我愿意更新我的问题。
"ct lslock -all"
--09-09T09:47 USER lock project "XXXXXXX" (locked)
"Locked for all users. Project locked for future changes as released."--09-20T09:56 USER lock baseline "XXXXXXXXX" (locked)
"Locked for all users."
(已移除锁)
“ct lslock -all”没有显示任何内容
"rmtype -rmall lbtype:BASELINE_in_progress@\VOB
There are 1228 labels of type "BASELINE_in_progress".
Remove labels? [no] yes
cleartool: Error: Lock (obsolete) on directory element prevents operation "remove label".
cleartool: Error: Unable to remove label type "BASELINE_in_progress".
最佳答案
实际的错误消息是
possible stranded temporary lbtype name found: "`abaselinexxx.yyyy_in_progress`".
这个想法是:
- 删除 UCM 组件涉及的 vob 中的所有 _inprogress 类型
$ ct rmtype -rmall lbtype:abaselinexxx.yyyy_in_progress@\\avob There are 1690 labels of type "abaselinexxx.yyyy_in_progress". Remove labels? [no] yes
- promote the baseline into a fully labelled one:
ct chbl -full -nc baseline:abaselinexxx.yyyy@\apvob
The locks which could prevent those operations to complete are:
- on the lbtype
- on the vob (ie the vob itself could be locked)
- on the pvob (the pvob or one of its admin pvob could be locked)
Few remarks, from the comments:
cleartool lslock -all
won't display obsolete files ("obsolete" being one form of locking):cleartool lslock -all -obsolete
will.to unlock a set of locked files, you have a choice between
for
andcleartool find -exec
commands.
Windows
for /f "delims==" %x in ('cleartool lslock -all -obsolete -fmt "%Xn\n"') do cleartool unlock "%x"
Unix,在 View 上下文中...
cleartool lslock -all -obsolete -fmt "%Xn\n" | xargs -i{}
cleartool unlock %x
请注意,cleartool find
将解锁特定路径下的所有内容。
如果您知道该路径(以及所有(或大部分)其内容)已被锁定,那么它就可以工作:
ct find /path/to/a/locked/directory -exec '/usr/atria/bin/cleartool unlock "$CLEARCASE_PN"'
关于clearcase - 基线创建中断,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11395543/