Showing posts with label cm. Show all posts
Showing posts with label cm. Show all posts

Wednesday, April 6, 2011

Clearcase merge (alternative)

ct findmerge SCCP-MIR.xml -fversion /main/sw8/cr16532/LATEST -merge -gmerge
     |
     1
     |   \
  LATEST   1'
C’est 1’ qui est merge.
Puis faire ci.

crtool master BOD, where?

cd /ccase/cm/crtool-1.3/var/mbods

Compile without winking

clearmake -u
or
clearmake -V
Do not use swmake!

Who is owning the branch?

ct des bin/version.pl@@/main/sw9/eecn_902_sp4_patches

Get synchronization status

multitool lsepoch

Date of a label type

ct des lbltype:SW-9.02-SP4-DROP3

Changes from date

cd /vob/signalware/Master/
ct find -all -version '{brtype(cr25396a) && created_since(19-aug)}' -print -nxname

Merge files from cr19287a to current branch

ct findmerge -all -c "Merge back from tip" -fversion /main/sw9/cr19287a/LATEST -merge -gmerge

Show files to merge from cr19287a to current branch

ct findmerge -all -c "Merge back from tip" -fversion /main/sw9/cr19287a/LATEST -print

Cannot checkout

When we get this error:
[gallinar@chablis] gallinar_cr31703_sun 698 > crtool co -nc Imakefile
cleartool: Error: Unable to access "/view/admin@@/vob/signalware/main/sw9/3/Master/main/sw9/eecn_902_sp4_nsignia/2/xua/main/sw9/4/m3ua/main/sw9/5/s7ip/main/sw9/2/src/main/sw9/eecn_902_sp4_nsignia/0/c7/main/sw9/eecn_902_sp4_nsignia/cr31703a/CHECKEDOUT.21177515/Imakefile//main/sw9/2": No such file or directory.

This means that a directory in the current path is checked-out, and prevent the remote command from succeeding.
Solution:
Check-in the concerned directory, force a Clearcase synchro. and start again the CO.

Size of views

To get the top10 biggest views, “crtool :top10” is only effective for cm on peche.
Instead of using this command,
ssh peche
cd /export/ccase2/gallinar
du -sk | sort

Change CO reserved into CO unreserved

Nancy, You can change Gary's checkout to unreserved by setting his view and using
cleartool unres "filename"
PQ

Change rights on Clearcase directory

ct protect -chmod g+w triggers

Synchronize

Synchronize from the US to France:
ct sched -host walter -run 11
Synchronize from France to the US:
ct sched -host peche -run 11

Back in time

Use the -time option in config spec
E.g.:

element * /main/sw9/eecn_902_sp5/LATEST -nocheckout -time 1-Sep-2008.00:00:00

Unable to create config spec

If crtool displays this message when createing a view (on k2632 for example), proceed as follows:
root> domainname fr.ulticom.com
and try re-creating the view.

ERROR: SITE UNKNOWN

If we get this error:
[gallinar@lili] gallinar_cr34559_k2632 698 > ct ci -nc ./lib/sctp_stat.c
ERROR: SITE UNKNOWN
cleartool: Warning: Trigger "Get_CR_info_and_Validate" has refused to let checkin proceed.
cleartool: Error: Unable to check in "./lib/sctp_stat.c".

then
root> domainname fr.ulticom.com

Changes between labels SW-9.02-SP4-DROP3 and SW-9.02-SP4-DROP4

ct find . -ver 'lbtype(SW-9.02-SP4-DROP3)' -print | sort > drop3.txt
ct find . -ver 'lbtype(SW-9.02-SP4-DROP4)' -print | sort > drop4.txt
diff drop3.txt drop4.txt

Set a new label

> ct mklbtype -c "my comment" LABEL
> ct mklabel [-rec] [-rep] LABEL

-rep permet de deplacer un label deja pose

Checkout UpdateSwmml.pm

Just add the following line in config spec.:
element /vob/int_tools/... /main/LATEST