How to find all checkedout files with ClearCase cleartool?

前端 未结 1 1163
暖寄归人
暖寄归人 2020-12-08 22:50

I\'m trying to setup our ClearCase with Hudson for a continuous integration (and deployment later).

I finally got a UCM view for the build, but unfo

相关标签:
1条回答
  • 2020-12-08 23:51

    You can start by this SO question on how to list private files.

    Then it depends on the nature of your ClearCase view.
    On a dynamic view for instance, a simple ct lsprivate list private files (including hijacked ones) and checkout files.

    The official command is cleartool lscheckout (or 'lsco').
    If you are within the right vob within your view:

    $/path/to/view/vobs/aVob
    cleartool lsco -rec -cview
    

    ,should list all checked out files from any user in any sub-directories of said vob.

    But if your build is broken because of files checked out in several vobs, then you need to widen the scope:

    $/path/to/view/
    cleartool lsco -avobs -cview
    

    (you don't need to be in a specific vob in this case)


    As Manjunath K Mayya points out in the comments:

    To list only the file names, without the version details, we can use "short":

    cleartool lsco -short -avobs -cview
    
    0 讨论(0)
提交回复
热议问题