Baseline creation interrupted

无人久伴 提交于 2021-01-28 03:22:21

问题


I tried to create a baseline today and ClearCase Explorer crashed (seemed to be after it was finished, but evidently it wasn't.)

I tried to recreate the baseline and it gives me an error saying there are some that are "in_progress" so it can not proceed.

I removed the baseline, and I am trying to remove the "in_progress" label types. When I remove the lbtype, it says that a directory is locked.

I did an lslock -all and removed the locks on a project and a baseline and now there is nothing listed when I do an lslock -all.

I tried to remove the "in_progress" lbtype and it is still saying that something is locked. Is there another way to find out what is preventing it from working?

I know this may be confusing, so if any clarification is needed, I am willing to update my question.

"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."

(removed locks)

"ct lslock -all" shows nothing

"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".


回答1:


The actual error message is

possible stranded temporary lbtype name found: "`abaselinexxx.yyyy_in_progress`".

The idea is to:

  • remove all the _inprogress types in the vob(s) involved by the UCM components
$ 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 and cleartool find -exec commands.

Windows

for /f "delims==" %x in ('cleartool lslock -all -obsolete -fmt "%Xn\n"') do cleartool unlock "%x"

Unix, in view context...

cleartool lslock -all -obsolete -fmt "%Xn\n" | xargs -i{}
cleartool unlock %x

Note that a cleartool find would unlock everything under a certain path.
If you know that path (and all -- or most of all -- its content) is locked, then it can work:

ct find /path/to/a/locked/directory -exec '/usr/atria/bin/cleartool unlock  "$CLEARCASE_PN"'


来源:https://stackoverflow.com/questions/11395543/baseline-creation-interrupted

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