working in /vobs/some/path versus /view/view-tag-name/vobs/some/path

后端 未结 2 915
情歌与酒
情歌与酒 2021-01-16 07:14

I have to use ClearCase at work and the basic workflow requires me to do something like:

cleartool setview 

view

2条回答
  •  死守一世寂寞
    2021-01-16 08:05

    If your workflow was to start emacs and then set into a view from there, things will be strange indeed.

    The only thing that setview does differently from startview is that it starts that chrooted shell. Only that shell, and its descendants, will see source code in /vobs/vobtag/... If you work in multiple "setview" shells (for multiple versions of your app to maintain, multiple phases, etc.), you would have multiple otherwise identical shells accessing different versions of the same files via apparently-identical paths.

    One thing to be aware of when working with ClearCase is that directories are versioned too. As a result, files added in one view may not appear in the other view if:

    1. They are based on different versions of the parent directory; or
    2. The parent directory of the file added to source control hasn't been checked in yet.

    Unless your build process requires VOB contents to be visible at /vobs/vobtag, I'd concur with @VonC about not using setview.

    I can't really add anything to VonC's other comments.

提交回复
热议问题