Domanda

Buon pomeriggio

Sembra come se fossi un po 'bloccato nella terra dei CC in questi giorni, ma ho un'ultima (si spera) ultima domanda sulla corretta gestione dei CC:

Quando uso la Creazione guidata vista CC, posso creare perfettamente una vista istantanea corretta sulla mia macchina, tuttavia quando provo a fare lo stesso con il comando mkview, fallisce ...

L'uso della procedura guidata per la creazione della vista porta alla seguente vista (funzionante):

cleartool> lsview battjo6r_view2
  battjo6r_view2       \\Eh40yd4c\Views\battjo6r_view2.vws
cleartool> lsview -long battjo6r_view2
Tag: battjo6r_view2
  Global path: \\Eh40yd4c\Views\battjo6r_view2.vws
  Server host: Eh40yd4c
  Region: CT_WORK
  Active: NO
  View tag uuid:f34cf43f.b4d048df.845d.ed:21:a2:9c:45:ff
View on host: Eh40yd4c
View server access path: D:\Views\battjo6r_view2.vws
View uuid: f34cf43f.b4d048df.845d.ed:21:a2:9c:45:ff
View attributes: snapshot
View owner: WW005\battjo6r

Tuttavia, quando si tenta di creare la vista manualmente tramite

mkview -snapshot -tag battjo6r_view2 -vws \\Eh40yd4c\Views\battjo6r_view2.vws -host Eh40yd4c -hpath D:\Views\battjo6r_view2.vws -gpath \\Eh40yd4c\Views\battjo6r_view2.vws battjo6r_view2

... Ottengo il seguente errore:

cleartool> mkview -snapshot -tag battjo6r_view2 -vws \\Eh40yd4c\Views\battjo6r_view2.vws -host Eh40yd4c -hpath D:\Views\battjo6r_view2.vws -gpath \\Eh40yd4c\Views\battjo6r_view2.vws battjo6r_view2
Created view.
Host-local path: Eh40yd4c:D:\Views\battjo6r_view2.vws
Global path:     \\Eh40yd4c\Views\battjo6r_view2.vws
cleartool: Error: Unable to find view by uuid:6f99f7ae.6a5d40e4.ba32.37:8e:e5:a4:ed:18, last known at "<viewhost>:<stg_path>".
cleartool: Error: Unable to establish connection to snapshot view "6f99f7ae.6a5d40e4.ba32.37:8e:e5:a4:ed:18": ClearCase object not found
cleartool: Warning: Unable to open snapshot view "D:\SnapShotViews\battjo6r_view2".
cleartool: Error: Unable to create snapshot view "battjo6r_view2".
Removing the view ...

Qualche idea sul perché questo stia accadendo? Mi sto perdendo qualcosa?

È stato utile?

Soluzione

Questo di solito è dovuto al fatto che albd non è in esecuzione.
In realtà, è in esecuzione, ma ClearCase tenta di contattare l'host sbagliato.

Qui: Percorso host-local: Eh40yd4c: D: \ Views \ battjo6r_view2.vws è altamente sospetto.

Prova:

mkview -snapshot -tag battjo6r_view2 -vws \\Eh40yd4c\Views\battjo6r_view2.vws -host Eh40yd4c -hpath \\Eh40yd4c\Views\battjo6r_view2.vws -gpath \\Eh40yd4c\Views\battjo6r_view2.vws battjo6r_view2

Cioè: hpath = gpath.

oppure, se il primo comando fallisce, anche (è più semplice e può funzionare)

mkview -snapshot -tag battjo6r_view2 -vws \\Eh40yd4c\Views\battjo6r_view2.vws battjo6r_view2

Speriamo che ClearCase possa determinare da solo l'host, l'hpath e il gpath.

Altri suggerimenti

cleartool mkview -snapshot -tag <tag_name> -vws \\<computer_name>\<views_folder>\<view_name> <path_of_localstorage>

Per i dettagli puoi seguire questo link .

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top