Topic
3 replies Latest Post - ‏2006-12-05T06:32:58Z by SystemAdmin
Screen__Name
Screen__Name
2 Posts
ACCEPTED ANSWER

Pinned topic Should ClearCaseData.pl use -all instead of -recurse?

‏2006-12-04T22:47:43Z |
Hi,

I am setting up ProjectConsole to do reporting on code churn within ClearCase. When I run the ClearCaseData.pl script I see that it only picks up churn that is visible from the view I am using. I see the script calls "lshistory -recurse" which only reports on elements that are visible from the view. Should it instead use -all so that it picks up all elements in the VOB -- even those not visible in the current view?

Thanks,
Kevin
Updated on 2006-12-05T06:32:58Z at 2006-12-05T06:32:58Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    1189 Posts
    ACCEPTED ANSWER

    RE:Should ClearCaseData.pl use -all instead of -recurse?

    ‏2006-12-05T01:29:41Z  in response to Screen__Name
    Hi Kevin,
    If you are using a snapshot view, make sure you run 'cleartool update
    view_name' prior to running your perl script.

    Good luck

    -----Original Message-----
    From: pjc-bounces@lists.ca.ibm.com mailto:pjc-bounces@lists.ca.ibm.com
    On Behalf Of Screen__Name
    Sent: Monday, December 04, 2006 5:48 PM
    To: pjc@lists.ca.ibm.com
    Subject: pjc Should ClearCaseData.pl use -all instead of -recurse?

    Hi,

    I am setting up ProjectConsole to do reporting on code churn within
    ClearCase. When I run the ClearCaseData.pl script I see that it only
    picks up churn that is visible from the view I am using. I see the
    script calls "lshistory -recurse" which only reports on elements that
    are visible from the view. Should it instead use -all so that it picks
    up all elements in the VOB -- even those not visible in the current
    view?

    Thanks,
    Kevin
    _______________________________________________
    pjc mailing list
    pjc@lists.ca.ibm.com
    Unsubscribe: pjc-leave@lists.ca.ibm.com

    _______________________________________________
    pjc mailing list
    pjc@lists.ca.ibm.com
    Unsubscribe: pjc-leave@lists.ca.ibm.com
    • Screen__Name
      Screen__Name
      2 Posts
      ACCEPTED ANSWER

      Re: RE:Should ClearCaseData.pl use -all instead of -recurse?

      ‏2006-12-05T02:28:42Z  in response to SystemAdmin
      Hi,

      Thanks but with "-all" you do not need to run "cleartool -update" -- that is the beauty of -all.

      As a test, create a snapshot view with the default config spec. Load a VOB that is only developed using UCM. Your initial (and only) load of the view will contain only "lost+found". If you cd to the vob tag within the snapshot view and run "cleartool lshistory -all ." you will see history for all elements; and none of these elements were ever loaded in your snapshot view.

      -Kevin

      > Hi Kevin,
      > If you are using a snapshot view, make sure you run
      > 'cleartool update
      > view_name' prior to running your perl script.
      >
      > Good luck
      >
      > -----Original Message-----
      > From: pjc-bounces@lists.ca.ibm.com
      > mailto:pjc-bounces@lists.ca.ibm.com
      > On Behalf Of Screen__Name
      > Sent: Monday, December 04, 2006 5:48 PM
      > To: pjc@lists.ca.ibm.com
      > Subject: pjc Should ClearCaseData.pl use -all
      > instead of -recurse?
      >
      > Hi,
      >
      > I am setting up ProjectConsole to do reporting on
      > code churn within
      > ClearCase. When I run the ClearCaseData.pl script I
      > see that it only
      > picks up churn that is visible from the view I am
      > using. I see the
      > script calls "lshistory -recurse" which only reports
      > on elements that
      > are visible from the view. Should it instead use -all
      > so that it picks
      > up all elements in the VOB -- even those not visible
      > in the current
      > view?
      >
      > Thanks,
      > Kevin

  • SystemAdmin
    SystemAdmin
    1189 Posts
    ACCEPTED ANSWER

    Re:Should ClearCaseData.pl use -all instead of -recurse?

    ‏2006-12-05T06:32:58Z  in response to Screen__Name
    > Should it instead use -all so that it picks up all elements in the VOB -- even those not visible in the current view?

    If you have many years of history in your database, you might not want
    to get ALL history. If you do not get enough history from the view
    you are using, then extend the view with what you are interested in.
    Anyway, history -recurse will suffice.

    Frank.

    TOPIC Embedded Systems
    P.O. box 440, NL-5680 AK Best
    Netherlands
    Phone (+31) 499 336977
    Fax (+31) 499 336978
    _______________________________________________
    pjc mailing list
    pjc@lists.ca.ibm.com
    Unsubscribe: pjc-leave@lists.ca.ibm.com