[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fwd: Export from Clear Case into CVS?]

From: Noel L Yap
Subject: Re: [Fwd: Export from Clear Case into CVS?]
Date: Tue, 5 Jun 2001 09:26:42 -0400

I'm not sure if one exists for ClearCase, but the jist of any of these scripts
is to checkout each version of each file from one VC system, then check each of
them into the other (while trying to preserve comments and who checked stuff

This doesn't sound too hard in ClearCase since you can easily obtain a version
tree by doing something like:
find /view/latest -type f | xargs -i find {}@@ -type f -name '[0-9]*'

Then you'll need to go through to create the labels.  You should be able to
retrieve these by doing something similar:
find /view/latest -type f | xargs -i find {}@@ -type f -name '[^0-9]*' ! -name

If you pipe the above output through:
xargs cleartool des -s

you'll get the version numbers of the labels.

Of course, you'll need to clean up the "main" branch (eg you probably don't want
the trunk to be a separate branch called "main").  You might also need to be
careful about per-branch labels and branches (I'm thinking you could try tr'ing
the '/' into '_').  Oh, and you need to be careful about characters that are
illegal in CVS symbolic names (eg '.').

Since I only took about ten minutes to come up with this, there's probably way
more gotchas than I've alluded to.  Good luck.

Hope this helps,

|        |                       |
|        |          dprice@collab|
|        |          .net         |
|        |                       |
|        |          2001.06.05   |
|        |          08:47        |
|        |          Please       |
|        |          respond to   |
|        |          info-cvs;    |
|        |          Please       |
|        |          respond to   |
|        |          Ray.Oneal    |
|        |                       |
  |                                                                            |
  |       To:     info-cvs@gnu.org, Ray.Oneal@htc.com                          |
  |       cc:     bug-cvs@gnu.org, (bcc: Noel L Yap)                           |
  |       Subject:     [Fwd: Export from Clear Case into CVS?]                 |

Please send these sort of questions to info-cvs@gnu.org

Derek Price                      CVS Solutions Architect ( http://CVSHome.org )
mailto:dprice@collab.net         CollabNet ( http://collab.net )
Doesn't expecting the unexpected make the unexpected become the expected?

Return-Path: <bug-cvs-admin@gnu.org>
Delivered-To: dprice@collab.net
Received: (qmail 29111 invoked by uid 0); 4 Jun 2001 19:24:25 -0000
Received: from fencepost.gnu.org (  by laswell.sp.collab.net with
SMTP; 4 Jun 2001 19:24:25 -0000
Received: from localhost ([] helo=fencepost.gnu.org)     by
fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))    id 156zxL-0002pp-00;
Mon, 04 Jun 2001 15:24:03 -0400
Received: from insws8501.gs.com ([])   by fencepost.gnu.org with
smtp (Exim 3.16 #1 (Debian))  id 156zv5-0002nx-00  for <bug-cvs@gnu.org>; Mon,
04 Jun 2001 15:21:43 -0400
Received: from insdb8501.inz.gs.com (insdb8501.inz.gs.com [])   by
insws8501.gs.com (Postfix) with ESMTP id 4F8681BEDB     for <bug-cvs@gnu.org>;
Mon,  4 Jun 2001 15:21:43 -0400 (EDT)
Received: from hlch03e.htc.com by insdb8501.inz.gs.com with ESMTP for
bug-cvs@gnu.org; Mon, 4 Jun 2001 15:21:43 -0400
Received: by hlch03e.htc.com with Internet Mail Service (5.5.2650.21)  id
<MGT6S1G0>; Mon, 4 Jun 2001 14:21:42 -0500
Message-Id: <2F1DB8E35708D511906A0002A52C2DCE10FE81@hlch03e.htc.com>
From: "O'Neal, Ray" <Ray.Oneal@htc.com>
To: "Bug-Cvs (E-mail)" <bug-cvs@gnu.org>
Subject: Export from Clear Case into CVS?
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: text/plain;     charset="iso-8859-1"
Sender: bug-cvs-admin@gnu.org
Errors-To: bug-cvs-admin@gnu.org
X-BeenThere: bug-cvs@gnu.org
X-Mailman-Version: 2.0.3
Precedence: bulk
List-Help: <mailto:bug-cvs-request@gnu.org?subject=help>
List-Post: <mailto:bug-cvs@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-cvs>,   <
List-Id: Bug reports for the CVS versions control system <bug-cvs.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-cvs>,      <
List-Archive: <http://mail.gnu.org/pipermail/bug-cvs/>
Date: Mon, 4 Jun 2001 14:21:41 -0500
X-Mozilla-Status2: 00000000


I was wondering if there was a way to export data from ClearCase into CVS? I
am thinking maybe with a perl script, but could someone point me in the
right direction.


Ray O'Neal
Quality Assurance, Core Analytic Technology
Goldman Sachs
311 S. Wacker Drive, Suite 1400
Chicago, IL 60606

Ph. 312.697.2926

Bug-cvs mailing list

This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan Chase & Co., its
subsidiaries and affiliates.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]