Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
269 views
in Technique[技术] by (71.8m points)

Recursive checkin using Clearcase

I want to check in a directory and all the sub-directories into the clear case. Is there a specific command to achieve it? Currently I am going into each directory and manually checking in each file.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I would recommend this question:

Now the problem is to checkin everything that has changed.
It is problematic since often not everything has changed, and ClearCase will trigger an error message when trying to check in an identical file. Meaning you will need 2 commands:

ct lsco -r -cvi -fmt "ci -nc "%n"
" | ct
ct lsco -r -cvi -fmt "unco -rm %n
" | ct

(with 'ct being 'cleartool' : type 'doskey ct=cleartool $*' on Windows to set that alias)


But if by "checkin" you mean:

  • "enter into source control for the first time"
  • "updating a large number of files which may have changed on an existing versionned directory"

I would recommend creating a dynamic view and clearfsimport your snapshot tree (with the new files) in the dynamic view.

See this question or this question.

the clearfsimport script is better equipped to import multiple times the same set of files, and automatically:

  • add new files,
  • make new version of existing files previously imported (but modified in the source set of files re-imported)
  • remove files already imported but no longer present in the source set of files.
  • make a clear log of all operations made during the import process.

:

 clearfsimport -preview -rec -nset c:sourceDir* m:MyViewMyVobMyDestinationDirectory

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...