Questions tagged [clearcase]

ClearCase is a closed-source, centralized revision control system (VCS) from IBM. Among its features: per-file versions & branches; "snapshot" copies of versioned data as well as dynamically-synched views of server contents; replication. Decentralized option: ClearCase Multi-Site, with Vobs (Version Object Base) replication Network access to versioned data: dynamic views. It is currently managed by IBM (after being run by Rational)

ClearCase (a.k.a. Rational ClearCase) is version control system (VCS), available commercially from IBM.

Defining features

  • It is centralized rather than distributed: There is a central server (possibly replicated) holding the authoritative versions of data and their histories; a developer or user employs a client to access data on the central server, and cannot rely on other clients or on itself as an alternative to the server.
  • It is network-oriented: Version histories and other meta-data is not to be found in some hidden subfolder on the local file system, and manipulated through edits to those files. Any interaction with such histories is carried out over connections to the ClearCase server.
  • Versioning happens at file-level rather than repository-level. Thus, changes happen to individual files independently of others; when "viewing" a repository, one in fact sees a collection of different versions of many independent objects.
  • It is closed-source, only available under a restrictive license.

Additional notworthy features

  • Supports two kinds of access to repositories:

    • snapshot view: A local copy of (certain versions of) all files in a repository, pulled once from the server.
    • dynamic view: A dynamically-synched form of access to a repository, where all operations actually happen on the ClearCase server, and all writes and changes impact it.

    the distinction between the two view types is somewhat similar to the POP3 vs IMAP protocols in email, or NFS vs rsync'ed filesystems. In fact, dynamic views are implemented via operating system kernel integration of the ClearCase client.

  • A complex mechanism of choosing which versions and branches of which files are used in a view, through a cascading/fall-through chain of rules called a config-spec (view configuration specification). These also determine when ClearCase is to create new versions of some files, in the same or in a new b ranch.

  • Replication of the centrally-stored versioned data, for better robustness (the "MultiSite" feature), with various supported syncrhonization/replication patterns.

History

ClearCase was initially developed in the early 1990s by Atria software; Atria later merged into Rational Software; and Rational was eventually became a division of IBM, which bought it in 2003. ClearCase development/maintenance is ongoing, albeit slowly: over the past decade revisions have been released once a year or several years.

Online resources

2218 questions
17
votes
9 answers

Command line to delete all ClearCase view-private files

I'm looking for a command line to remove all view-private files and directories from a ClearCase view on Windows. I have Cygwin available as well. The script available at this article is not quite what I want, since I'm working with a large number…
mbyrne215
  • 2,304
  • 4
  • 21
  • 16
17
votes
2 answers

how to find files in a given branch

I noticed that when doing code view, people here in my company usually just give the branch in which his work is done, and nothing else. So I guess there must be a easy way to find out all the files that has a version in the given branch which is…
Haiyuan Zhang
  • 40,802
  • 41
  • 107
  • 134
17
votes
5 answers

In ClearCase, how can I view old version of a file in a static view, from the command line?

In a static view, how can I view an old version of a file? Given an empty file (called empty in this example) I can subvert diff to show me the old version: % cleartool diff -ser empty File@@/main/28 This feels like a pretty ugly hack. Have I…
Matt Curtis
  • 23,168
  • 8
  • 60
  • 63
16
votes
5 answers

What is the best strategy when migrating from ClearCase to SVN?

We are considering moving from ClearCase to Subversion. The project has been there for a while (7 years) and there are three "major" versions (branches) that we actively support, plus some occasional fixes in older releases. The project is fairly…
Bogdan
  • 1,150
  • 3
  • 11
  • 17
15
votes
13 answers

Migrate from ClearCase to SVN/Mercurial

At work, we're using ClearCase right now. However, there's a lot of overhead required, especially when someone does something stupid (like erase a view with multiple reserved check-outs on the trunk...). Since we're trying to lower our overhead…
Yuval
  • 1,382
  • 10
  • 22
14
votes
1 answer

Undo checkout using cleartool

How to undo checkout an element using cleartool command line tool in clearcase?
sarat
  • 10,512
  • 7
  • 43
  • 74
14
votes
3 answers

ClearCase: change branch type name?

I used mkbrtype BRANCH_NAME, checked out a few files, had some check-ins, etc. Now I discovered I had a typo in the branch name, and it looks pretty ugly. Is there a way I can change the branch name and still have all the versions/checkouts under…
Amir Rachum
  • 76,817
  • 74
  • 166
  • 248
14
votes
3 answers

Undo remove file in ClearCase

I have a ClearCase view with a folder, and two files. I check out the folder, remove a file and check the folder back in. I am left with one folder and one file. Is there a way to get my file back? I'm using the standard Windows suite of tools,…
Jono
  • 1,964
  • 4
  • 18
  • 35
14
votes
1 answer

How to find all checkedout files with ClearCase cleartool?

I'm trying to setup our ClearCase with Hudson for a continuous integration (and deployment later). I finally got a UCM view for the build, but unfortunatly our build process checks out files to store the build number. Now the build broke and the…
cringe
  • 13,401
  • 15
  • 69
  • 102
14
votes
3 answers

How do I determine what files in my ClearCase local view have not yet been added to source control?

If I have added/removed/modified a large number of files in my local ClearCase view, how can I be certain that all the files have been added to source control?
Grant Wagner
  • 25,263
  • 7
  • 54
  • 64
14
votes
2 answers

ClearCase Snapshot Views: exclude one particular directory from load statements?

Good morning, is there any way to exclude only one particular directory from a snapshot's load statement, e.g. I want to load a whole vob named 'PM_CT' except the \PM_CT\lost+found directory ... is there an elegant way to do it? And how would I…
Jörg Battermann
  • 4,044
  • 5
  • 42
  • 79
13
votes
1 answer

What are the differences between a snapshot view and a dynamic view?

I have seen in ClearCase that there is a Snapshot view and a Dynamic view. What are the differences between these types of views (I'm assuming there are only two types of views) and when are the appropriate times to use them?
brainimus
  • 10,586
  • 12
  • 42
  • 64
13
votes
3 answers

Sync GIT and ClearCase

I am currently working on ClearCase and now migrating to GIT. But we need this migration in a way that all work will be done in GIT and the data will be synced backed to ClearCase stream. We will have the same branch names and stream names in both…
Senthil A Kumar
  • 10,306
  • 15
  • 44
  • 55
12
votes
2 answers

How do I perform a recursive checkout using ClearCase?

I want to check out all files in all subdirectories of a specified folder. (And it is painful to do this using the GUI, because there is no recursive checkout option).
jm.
  • 23,422
  • 22
  • 79
  • 93
12
votes
2 answers

Quick way for SVN user to learn ClearCase

So far I've been using SVN, and now is in need to pick up ClearCase quickly, from developer's perspective. Is there any good resource for this? Thanks. -- add on -- Is there a map between SVN's concepts/terminologies (i.e. repository, working copy,…
shiouming
  • 1,889
  • 4
  • 17
  • 26