Topic
  • 5 replies
  • Latest Post - ‏2013-07-24T13:16:23Z by benray
4CD7_yugi_yami
4CD7_yugi_yami
3 Posts

Pinned topic clearcase

‏2013-04-23T11:57:28Z |

Hi Everybody,

please help : how to get a vob tag from a view tag with a commande line(with cleartool or something like that).

thanks

  • ezizza
    ezizza
    6 Posts

    Re: clearcase

    ‏2013-04-24T16:26:40Z  

    Not sure what you mean... what is it that you're trying to do? 

  • 4CD7_yugi_yami
    4CD7_yugi_yami
    3 Posts

    Re: clearcase

    ‏2013-05-20T14:48:35Z  

    Hi ezizza

    i want to know if there is commande that return the vob tag from a view tag.

    in other way, i want to know if there is any correspondance between VIEW and VOB.

    And thanks.

  • benray
    benray
    74 Posts

    Re: clearcase

    ‏2013-05-20T15:10:26Z  

    Hi ezizza

    i want to know if there is commande that return the vob tag from a view tag.

    in other way, i want to know if there is any correspondance between VIEW and VOB.

    And thanks.

    There is no *necessary* connection between a view and a vob. A view can access one vob or multiple vobs; a vob can be accessed by one or many views. Until you have an object tied to both (such as a checkout or view private file) there isn't much you can say about the connection between view and vob. Depending on the circumstance you might be able to tell which vob(s) are being used by a certain view at a given time. For example:

    - check the config spec. a snapshot view will show load rules for any vobs that are being loaded. a dynamic view *might* show rules that could help determine versions from certain vobs although in many cases it will not. a ucm config spec will show the components in the stream which should help determine the component vob(s)

    - if you cd into a vob in a dynamic view, the pwd command will show both the view and vob tag in use. also try the "cleartool pwv" command to print the current working directory view and/or set view

    Does this help or is there something specific you're looking for?

  • 4CD7_yugi_yami
    4CD7_yugi_yami
    3 Posts

    Re: clearcase

    ‏2013-07-24T09:03:16Z  
    • benray
    • ‏2013-05-20T15:10:26Z

    There is no *necessary* connection between a view and a vob. A view can access one vob or multiple vobs; a vob can be accessed by one or many views. Until you have an object tied to both (such as a checkout or view private file) there isn't much you can say about the connection between view and vob. Depending on the circumstance you might be able to tell which vob(s) are being used by a certain view at a given time. For example:

    - check the config spec. a snapshot view will show load rules for any vobs that are being loaded. a dynamic view *might* show rules that could help determine versions from certain vobs although in many cases it will not. a ucm config spec will show the components in the stream which should help determine the component vob(s)

    - if you cd into a vob in a dynamic view, the pwd command will show both the view and vob tag in use. also try the "cleartool pwv" command to print the current working directory view and/or set view

    Does this help or is there something specific you're looking for?

    Hi benray,

    Thanks a lot for your answer, it was very helpful.

    Now i want to know how can i get via commande line the mounted vob/vobs when using(setting) a specific view.

    And thanks.

     

  • benray
    benray
    74 Posts

    Re: clearcase

    ‏2013-07-24T13:16:23Z  

    Hi benray,

    Thanks a lot for your answer, it was very helpful.

    Now i want to know how can i get via commande line the mounted vob/vobs when using(setting) a specific view.

    And thanks.

     

    Does this help?

    [root@benray ~]# cleartool mount /vobs/vob2

    [root@benray ~]# cleartool setview root1
    [root@benray ~]# cleartool pwv
    Working directory view: ** NONE **
    Set view: root1
    [root@benray ~]# cd /vobs/vob2
    [root@benray vob2]# cleartool pwv
    Working directory view: root1
    Set view: root1
    [root@benray vob2]# ls
    a  b  c  lost+found
    [root@benray vob2]# cleartool ls
    a@@/main/CHECKEDOUT from /main/0                         Rule: CHECKEDOUT
    b@@/main/CHECKEDOUT from /main/0                         Rule: CHECKEDOUT
    c@@/main/CHECKEDOUT from /main/0                         Rule: CHECKEDOUT
    lost+found@@/main/0                                      Rule: /main/LATEST