Any ex ClearCase or VSS users out there?

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


John Arbash Meinel wrote:

> Clearcase also choses to show more information inline, and side-by-side.

well, I think the GUI is more mature in CC (although bzr and all
the extensions are on a good way).

In CC, the information (and sometimes even more than shown in the GUI)
can also be retrieved on the command line.

All changes in the repository (named VOB = versioned object base) can
be tracked like this:

  cleartool lshistory -all -long -since 2009-10-20
  ...
  2009-10-20T11:15:32+02:00 Voelker (VB027591.pdt at MHHB5VVC)
    create version "M:\view_ecs_berny\ecs_src\misc\swdbgen-error-80040154.zip@@\main\5"
    "add description and resolution of "Error 80040154" during swdbgen.bat"
  ...

The same can be done for a single file or directory, several of them or
recursively for a directory, e.g:

  cleartool lshistory  -long -last 5 M:\view_ecs_berny\ecs_src\tools\makeall.bat
  ...
  2009-10-19T18:19:42+02:00 Voelker (VB027591.pdt at MHHB5VVC)
    create version "M:\view_ecs_berny\ecs_src\tools\makeall.bat@@\main\br7.03\1" (v7.03a)
    "fix copy path for sload32 in "--swdbgen" mode"
  ...

Then, the version tree of a CC element (file||dir) can be shown,
here only the "interesting versions", i.e. those with labels or
where branches fork off):

  cleartool lsvtree M:\view_ecs_berny\ecs_src\tools\makeall.bat
  tools\makeall.bat@@\main
  tools\makeall.bat@@\main\9 (vUNT79)
  tools\makeall.bat@@\main\23 (vscm01, v5.36f, vhw001, v5.36e, v5.36d, v5.36c, ...)
  tools\makeall.bat@@\main\24 (v5.36h, v5.36g)
  ...


All commands have a very sophisticated syntax which is very powerful, e.g.

  cleartool> lshistory -help
  Usage: lshistory -graphical [-nopreferences [ [-minor] [-nco]
                               [-user login-name]
                               [-branch branch-type-selector] ] ]
                              [ [-recurse | -directory | -all | -avobs]
                               [-pname] pname ...
                               | object-selector ...
                              ]
         lshistory [-long | -short | -fmt format] [-eventid]
                   [-minor] [-nco] [-last [#_lines]]
                   [-since date-time] [-me | -user login-name]
                   [-branch branch-type-selector]
                   [ [-recurse | -directory | -all | -avobs | -local]
                    [-pname] pname ...
                    | object-selector ...
                   ]

  cleartool> checkin -help
  Usage: checkin | ci [-c comment | -cfile pname | -cq | -cqe | -nc] [-nwarn]
                      [-cr] [-ptime] [-keep | -rm] [-from source-pname]
                      [-identical] {-cact | activity_selector ... | pname ...}

  cleartool> lsvtree -help
  Usage: lsvtree -graphical [-all] [-nmerge] [-nco] pname ...
         lsvtree [-nrecurse] [-short] [-all] [-merge] [-nco] [-obsolete]
                 [-branch branch-pname] pname ...

  cleartool> describe -help
  Usage: describe -graphical pname ...
         describe [-local] [-long | -short | -fmt format]
                  [-alabel {label-type-selector[,...] | -all}]
                  [-aattr {attr-type-selector[,...] | -all}]
                  [-ahlink {hlink-type-selector[,...] | -all}]
                { [-cview] [-version version-selector | -ancestor]
                  [-ihlink {hlink-type-selector[,...] | -all}]
                  [-predecessor] [-pname] [-aliases [-all]] pname ...
                | -type type-selector ...
                | -cact | object_selector ...
                }

IMO, CC is much different ...

Bye,
Berny


More information about the bazaar mailing list