Changing version of a web view using Clearcase rcl

2019-05-31 02:01发布

问题:

I'm using the rcleartool version that comes with Clearteam Explorer 8.0.0 Running rcleartool -ver gives: C:\Program Files (x86)\IBM\IMShared\plugins\com.ibm.rational.ccrc.cli_8.0.0.v20140305_0215 I can't change my Clearteam Explorer version, but could use a different rcleartool version if it would work.

I want to be able to update my entire Web view to a chosen label or version from the command-line.

I see that "update -add" allows you to change the load rules, but as far as I can tell doesn't let you change the version selection rules?

"get" does let you specify a version or label but as far as I can see can only be used on a single file?

Is it possible to do what I want to do using rcleartool?

回答1:

The CCRC (ClearCase Remote Client) API rcleartool (which can be installed here) can allow you to edit a config spec.

Even though setcs isn't listed, you can try it, but this technote mentions "ClearTeam Explorer command line rcleartool setcs does not fill config spec as expected."

So the safest way remains to edit the config spec:

cd /path/to/your/web/view
rcleartool edcs

And all the config spec selection rule to view first your label (then the other rules)

If you are using UCM, the easiest way is to create a new project/integration stream, which you can then rebase to any baseline you want.
Or create a child stream to the stream where your label (baseline in UCM) has been created and rebase that baseline.