Aucun résumé des modifications |
|||
| (21 versions intermédiaires par le même utilisateur non affichées) | |||
| Ligne 3 : | Ligne 3 : | ||
|description=FAQ Clearcase | |description=FAQ Clearcase | ||
}} | }} | ||
{{sommaire à droite}} | |||
<wikipedia name=Rational_ClearCase no=1 search="système de gestion de développement" class="col-lg-9 well border border-primary"/> | |||
<br> | |||
A l'époque quand je l'ai utilisé la première fois, cet outil était commercialisé par '''Rational''', d'où son nom.<br> | |||
En général il était installé sur de gros systèmes du type serveur SUN ou IBM.<br> | |||
Le produit a été ensuite racheté par '''IBM''' .<br> | |||
Voilà ci-après quelques commandes '''Clearcase''' | |||
<div class={{{class|blubox-jck}}}> | <div class={{{class|blubox-jck}}}> | ||
== Vobs == | == Vobs == | ||
| Ligne 11 : | Ligne 17 : | ||
cleartool lsvob -short | cleartool lsvob -short | ||
}} | }} | ||
</div> | </div><br> | ||
<div class=grebox-jck> | <div class=grebox-jck> | ||
== Vues == | == Vues == | ||
=== Lister les vues === | === Lister les vues === | ||
: | :{{syntaxhighlight |lang=clearcase|code= | ||
cleartool lsview -short '*name*' | cleartool lsview -short '*name*' | ||
}} | |||
=== Entrer dans une vue === | === Entrer dans une vue === | ||
: | :{{syntaxhighlight |lang=clearcase|code= | ||
cleartool setview <viewname> | cleartool setview <viewname> | ||
}} | |||
===Afficher la vue courante === | ===Afficher la vue courante === | ||
: | :{{syntaxhighlight |lang=clearcase|code= | ||
cleartool pwv | cleartool pwv | ||
}} | |||
===Supprimer une vue === | ===Supprimer une vue === | ||
: | :{{syntaxhighlight |lang=clearcase|code= | ||
cleartool rmview -tag <viewname> | cleartool rmview -tag <viewname> | ||
}} | |||
</div> | </div> | ||
| Ligne 44 : | Ligne 51 : | ||
:{{syntaxhighlight |lang=clearcase| | :{{syntaxhighlight |lang=clearcase| | ||
cleartool checkout <file> | cleartool checkout <file> | ||
}} | |||
:{{syntaxhighlight |lang=clearcase| | |||
#checkout sans commentaire | #checkout sans commentaire | ||
cleartool checkout -nc <file> | cleartool checkout -nc <file> | ||
}} | |||
#checkout avec commentaire | #checkout avec commentaire | ||
:{{syntaxhighlight |lang=clearcase| | |||
cleartool checkout -c "ceci est un commentaire" <file> | cleartool checkout -c "ceci est un commentaire" <file> | ||
}} | }} | ||
| Ligne 55 : | Ligne 64 : | ||
:{{syntaxhighlight | lang=clearcase|code= | :{{syntaxhighlight | lang=clearcase|code= | ||
cleartool checkin <file> | cleartool checkin <file> | ||
}} | |||
* checkin sans commentaire | |||
:{{syntaxhighlight |lang=clearcase| | |||
cleartool checkin -nc <file> | cleartool checkin -nc <file> | ||
}} | |||
* checkin avec commentaire | |||
:{{syntaxhighlight |lang=clearcase| | |||
cleartool checkin -c "ceci est un commentaire" <file> | cleartool checkin -c "ceci est un commentaire" <file> | ||
}} | }} | ||
=== Lister les éléments en check-out === | === Lister les éléments en check-out === | ||
: | :{{syntaxhighlight |lang=clearcase| | ||
cleartool lsco -short -cview -me -avobs | cleartool lsco -short -cview -me -avobs | ||
}} | |||
=== Faire un check-in de tous les éléments en check-out === | === Faire un check-in de tous les éléments en check-out === | ||
: | :{{syntaxhighlight |lang=clearcase| | ||
cleartool ci -c "mon commentaire" `cleartool lsco -short -cview -me -avobs` | cleartool ci -c "mon commentaire" `cleartool lsco -short -cview -me -avobs` | ||
}} | |||
=== Ajouter | === Ajouter récursivement tous les éléments du répertoire courant === | ||
: | :{{syntaxhighlight |lang=clearcase| | ||
find . -print | xargs cleartool mkelem -mkpath -nc | find . -print | xargs cleartool mkelem -mkpath -nc | ||
}} | |||
=== Lister les éléments avec un label donné === | === Lister les éléments avec un label donné === | ||
: | :{{syntaxhighlight |lang=clearcase| | ||
cleartool find . -version 'lbtype(RENNSLXCOMP29-REVSTB-CMS-CI-327)' -print | cleartool find . -version 'lbtype(RENNSLXCOMP29-REVSTB-CMS-CI-327)' -print | ||
}} | |||
=== Lister les éléments d'une branche === | === Lister les éléments d'une branche === | ||
: | :{{syntaxhighlight |lang=clearcase| | ||
cleartool find . -version "brtype(DEV)" -print | cleartool find . -version "brtype(DEV)" -print | ||
< | }}<br> | ||
'''Remarque:''' | |||
'''Remarque:'''<br> | |||
<br | Toutes les versions des fichiers sont listés, y compris la version /0 | ||
<br><br> | |||
'''Exemple:''' | '''Exemple:''' | ||
:{{syntaxhighlight|lang=text|code= | :{{syntaxhighlight|lang=text|code= | ||
| Ligne 99 : | Ligne 112 : | ||
/vob/test/a/c.pdf@@/main/DEV/0 | /vob/test/a/c.pdf@@/main/DEV/0 | ||
/vob/test/a/c.pdf@@/main/DEV/1 | /vob/test/a/c.pdf@@/main/DEV/1 | ||
}} | }}<br> | ||
=== Lister les éléments "LATEST" d'une branche === | === Lister les éléments "LATEST" d'une branche === | ||
: | :{{syntaxhighlight |lang=clearcase| | ||
cleartool find . -version "version(.../DEV/LATEST)" -print | cleartool find . -version "version(.../DEV/LATEST)" -print | ||
}} | |||
=== Supprimer un élement fichier ou répertoire === | === Supprimer un élement fichier ou répertoire === | ||
: | :{{syntaxhighlight |lang=clearcase| | ||
cleartool rmname <elt> | cleartool rmname <elt> | ||
}} | |||
=== Supprimer un élement de façon définitive === | === Supprimer un élement de façon définitive === | ||
: | :{{syntaxhighlight |lang=clearcase| | ||
cleartool rmelem <elt> | cleartool rmelem <elt> | ||
}} | |||
</div> | </div> | ||
<div class={{{class|grebox-jck}}}> | <div class={{{class|grebox-jck}}}> | ||
== Branches == | == Branches == | ||
=== Créer une branche === | === Créer une branche === | ||
: | :{{syntaxhighlight |lang=clearcase| | ||
cleartool mkbrtype test_brch@\vobbx | cleartool mkbrtype test_brch@\vobbx | ||
}} | |||
=== Renommer le nom d'une branche === | === Renommer le nom d'une branche === | ||
: | :{{syntaxhighlight |lang=clearcase| | ||
cleartool rename brtype:old-branch-name brtype:new-branch-name | cleartool rename brtype:old-branch-name brtype:new-branch-name | ||
}} | |||
=== Comment modifier le nom d'une branche pour un element donné === | === Comment modifier le nom d'une branche pour un element donné === | ||
:{{syntaxhighlight |lang=clearcase| | :{{syntaxhighlight |lang=clearcase| | ||
cleartool chtype new-branch-name element@@old-branch-path | cleartool chtype new-branch-name element@@old-branch-path | ||
}} | }} | ||
| Ligne 150 : | Ligne 165 : | ||
== Labels == | == Labels == | ||
=== Créer un label === | === Créer un label === | ||
:{{syntaxhighlight |lang=clearcase| | |||
: | |||
cleartool mklbtype gsm-V3.0 | cleartool mklbtype gsm-V3.0 | ||
}} | |||
=== Poser un label === | === Poser un label === | ||
: | :{{syntaxhighlight |lang=clearcase| | ||
cleartool mklabel -rec gsm-V3.0 | cleartool mklabel -rec gsm-V3.0 | ||
}} | |||
=== Renommer le nom d'un label === | === Renommer le nom d'un label === | ||
: | :{{syntaxhighlight |lang=clearcase| | ||
cleartool rename lbtype:old-label-name lbtype:new-label-name | cleartool rename lbtype:old-label-name lbtype:new-label-name | ||
}} | |||
=== Supprimer un label sur un élément === | === Supprimer un label sur un élément === | ||
: | :{{syntaxhighlight |lang=clearcase| | ||
cleartool rmlabel –nc LABEL /vob/test/test.txt | cleartool rmlabel –nc LABEL /vob/test/test.txt | ||
}} | |||
=== Supprimer un label sur tous les élements === | === Supprimer un label sur tous les élements === | ||
| Ligne 180 : | Ligne 194 : | ||
}} | }} | ||
</div> | </div> | ||
<br> | |||
<div class="row"> | <div class="row"> | ||
== Liens Externes == | |||
{{grebox-jck |class=col-lg-8|content= | {{grebox-jck |class=col-lg-8|content= | ||
<favorites name="Clearcase" /> | <favorites name="Clearcase" /> | ||
}} | }} | ||
Rational ClearCase est une forge logicielle propriétaire éditée par IBM en tant que plate-forme intégrée. C'est un système de gestion de développement collaboratif permettant notamment la gestion du code source ou l'aide à la conception de logiciels.
A l'époque quand je l'ai utilisé la première fois, cet outil était commercialisé par Rational, d'où son nom.
En général il était installé sur de gros systèmes du type serveur SUN ou IBM.
Le produit a été ensuite racheté par IBM .
Voilà ci-après quelques commandes Clearcase
cleartool lsvob -short
cleartool lsview -short '*name*'
cleartool setview <viewname>
cleartool pwv
cleartool rmview -tag <viewname>
cleartool checkout <file>
#checkout sans commentaire
cleartool checkout -nc <file>
cleartool checkout -c "ceci est un commentaire" <file>
cleartool checkin <file>
cleartool checkin -nc <file>
cleartool checkin -c "ceci est un commentaire" <file>
cleartool lsco -short -cview -me -avobs
cleartool ci -c "mon commentaire" `cleartool lsco -short -cview -me -avobs`
find . -print
cleartool find . -version 'lbtype(RENNSLXCOMP29-REVSTB-CMS-CI-327)' -print
cleartool find . -version "brtype(DEV)" -print
Remarque:
Toutes les versions des fichiers sont listés, y compris la version /0
Exemple:
/vob/test/a/b.txt@@/main/DEV/0
/vob/test/a/b.txt@@/main/DEV/1
/vob/test/a/b.txt@@/main/DEV/2
/vob/test/a/c.pdf@@/main/DEV/0
/vob/test/a/c.pdf@@/main/DEV/1
cleartool find . -version "version(.../DEV/LATEST)" -print
cleartool rmname <elt>
cleartool rmelem <elt>
cleartool mkbrtype test_brch@\vobbx
cleartool rename brtype:old-branch-name brtype:new-branch-name
cleartool chtype new-branch-name element@@old-branch-path
#<branch> est la chemin complet de la branche
cleartool rmbranch –nc –force element@@<branch>
#<brname> est le nom de la branche
cleartool rmtype –rmall –force brtype:<brname>
cleartool mklbtype gsm-V3.0
cleartool mklabel -rec gsm-V3.0
cleartool rename lbtype:old-label-name lbtype:new-label-name
cleartool rmlabel –nc LABEL /vob/test/test.txt
#<LABEL> est le nom du label
cleartool rmtype –rmall –force lbtype:<LABEL>