How do I determine what files in my ClearCase local view have not yet been added to source control?

前端 未结 3 447
轻奢々
轻奢々 2020-12-05 11:54

If I have added/removed/modified a large number of files in my local ClearCase view, how can I be certain that all the files have been added to source control?

3条回答
  •  遥遥无期
    2020-12-05 12:24

    Your answer is correct, for snapshot views (which you call 'local view' ?)
    In a dynamic view, a simple

    cleartool lsprivate
    

    would suffice.

    But that would leave out hijacked files (which are already added to source control, but may have been modified without ClearCase knowing it)

    So I would recommend to complete your command with (for Windows):

    for /F "usebackq delims= " %i in (`cleartool ls -r -nxn ^| find "hijacked"`) do @echo %i
    

    For Unix:

    cleartool ls -r -nxn | grep hijacked
    

    That would also leave files in checkouts (granted, they also are added to source control, but should be also listed as they must be eventually committed or cancelled).
    In Snapshot views:

    cleartool lscheckout -recur
    

    In Dynamic views:

    cleartool lsprivate –co
    

提交回复
热议问题