8

I have a view named "Dev_view" in ClearCase and want to update the view via windows command line. Is there a way to do that?

In particular, what other command can trigger a view update?

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250

1 Answers1

9

See cleartool update command (for full ClearCase client, not for CCRC)

cd /path/of/your/snapshot/view
cleartool update .

You cal also add the following options:

-ove/rwrite

Overwrites all hijacked files with the version selected by the config spec.

-nov/erwrite

Leaves all hijacked files in the view with their current modifications.

-ren/ame/

Renames hijacked files to filename.keep and copies the version in the VOB selected by the config spec into the view.


Note that updating the root directory of an UCM view have side-effect: it will re-evaluate the config spec of the view against its associate UCM stream, and will propose to update said config-spec (and proceed with the update).

This isn't the case for a non-UCM view, where a cleartool setcs will always trigger the update after chaging the config spec.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • excellent answer as always (I have stopped trying to respond to clearcase questions as you are always one up :). But this is an RTFM question. Should they be encouraged ? – Pulak Agrawal Oct 08 '12 at 08:13
  • 1
    @PulakAgrawal good point. I have added non-trivial information about this command in my edited answer. – VonC Oct 08 '12 at 08:25
  • Just so nobody else runs into this problem: if you have a recent version of cleartool, the slashes in the option switches are no longer used, just use `-overwrite` or `-rename` etc. Also, you have to put the option before the path, e.g. `cleartool update -overwrite .`. – youR.Fate Aug 26 '14 at 12:54
  • 1
    @youR.Fate the '/' option? It is a shortcut: `cleartool update -ove` or `cleartool update -nov`. Is that shortcut not working with ClearCase 8.x (and rcleartool)? – VonC Aug 26 '14 at 12:55
  • Oh, I didn't interpret it as a shortcut, i tried `cleartool update -ove/rwrite .`. That didn't work. Sorry for the confusion. – youR.Fate Aug 26 '14 at 12:57
  • 1
    @youR.Fate no problem. I confirm `cleartool update -ove/rwrite` wouldn't work, but `cleartool update -ove` should work. – VonC Aug 26 '14 at 12:58