Any ex ClearCase or VSS users out there?

Voelker, Bernhard bernhard.voelker at siemens-enterprise.com
Wed Oct 21 16:42:31 BST 2009


Krzysztof Nowicki
> ... The only corner
> case is when you check-out a file in CC and undo the checkout leaving a branch
> with just version 0. This is however considered bad practice in the CC world anyway.

I personally disagree: it's totally valid to create a branch with simply version 0
in ClearCase ... so the version of that file is named e.g. myfile@@/main/mybranch/0.
We're using that because of issues with replicated repositories.

But I got a major difference between CC and bzr:
In "normal" (i.e. dynamic views), it's not possible to change a file
without a "checkout"; checkout of a file means "tell the CC server that
I'm gonna change that file" and usually the file is locked for concurrent
checkouts (unless -unreserved given).

This illustrates that checkout/change/checkin workflow
(not yet using a special, private branch):

  cleartool mkelem -nco -c "test" myfile
  cleartool: Error: Can't modify directory "." because it is not checked out.

  cleartool checkout -c "adding file myfile" .
  Checked out "." from version "\main\17".

  cleartool mkelem -nco -c "test" myfile
  Created element "myfile" (type "compressed_file").

  cleartool lsvtree -all myfile
  myfile@@\main
  myfile@@\main\0

  cleartool checkin -c "checkin the directory after creating the new element" .
  Checked in "." version "\main\18".

  echo change1 > myfile
  Access is denied.

  cleartool checkout -c change1 myfile
  Checked out "myfile" from version "\main\0".

  cleartool lsvtree -all myfile
  myfile@@\main
  myfile@@\main\0
  myfile@@\main\CHECKEDOUT view "view_ecs_berny"

  echo change1 > myfile

  cleartool checkin -c "checkin change1" myfile
  Checked in "myfile" version "\main\1".

  cleartool lsvtree -all myfile
  myfile@@\main
  myfile@@\main\0
  myfile@@\main\1

  cleartool diff -serial_format -predecessor myfile@@/main/1
  ********************************
  <<< file 1: myfile@@\main\0
  >>> file 2: myfile@@/main/1
  ********************************
  -----[after 0 inserted 1]-----
  > change1

  cleartool diff -serial_format -predecessor .@@/main/LATEST
  ********************************
  <<< directory 1: .@@\main\17
  >>> directory 2: .@@/main/LATEST
  ********************************
  -----[ added ]-----
  > myfile  --10-21T17:26 VB027591

Have fun,
Berny



More information about the bazaar mailing list