info-cvs
[Top][All Lists]
Advanced

[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
in).

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
'LATEST'

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,
Noel



|--------+----------------------->
|        |                       |
|        |          address@hidden|
|        |          .net         |
|        |                       |
|        |          2001.06.05   |
|        |          08:47        |
|        |          Please       |
|        |          respond to   |
|        |          info-cvs;    |
|        |          Please       |
|        |          respond to   |
|        |          Ray.Oneal    |
|        |                       |
|--------+----------------------->
  >----------------------------------------------------------------------------|
  |                                                                            |
  |       To:     address@hidden, address@hidden                          |
  |       cc:     address@hidden, (bcc: Noel L Yap)                           |
  |       Subject:     [Fwd: Export from Clear Case into CVS?]                 |
  >----------------------------------------------------------------------------|






Please send these sort of questions to address@hidden

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





Return-Path: <address@hidden>
Delivered-To: address@hidden
Received: (qmail 29111 invoked by uid 0); 4 Jun 2001 19:24:25 -0000
Received: from fencepost.gnu.org (199.232.76.164)  by laswell.sp.collab.net with
SMTP; 4 Jun 2001 19:24:25 -0000
Received: from localhost ([127.0.0.1] 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 ([204.4.182.10])   by fencepost.gnu.org with
smtp (Exim 3.16 #1 (Debian))  id 156zv5-0002nx-00  for <address@hidden>; Mon,
04 Jun 2001 15:21:43 -0400
Received: from insdb8501.inz.gs.com (insdb8501.inz.gs.com [204.4.188.74])   by
insws8501.gs.com (Postfix) with ESMTP id 4F8681BEDB     for <address@hidden>;
Mon,  4 Jun 2001 15:21:43 -0400 (EDT)
Received: from hlch03e.htc.com by insdb8501.inz.gs.com with ESMTP for
address@hidden; 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: <address@hidden>
From: "O'Neal, Ray" <address@hidden>
To: "Bug-Cvs (E-mail)" <address@hidden>
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: address@hidden
Errors-To: address@hidden
X-BeenThere: address@hidden
X-Mailman-Version: 2.0.3
Precedence: bulk
List-Help: <mailto:address@hidden>
List-Post: <mailto:address@hidden>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/bug-cvs>,   <
mailto:address@hidden>
List-Id: Bug reports for the CVS versions control system <bug-cvs.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/bug-cvs>,      <
mailto:address@hidden>
List-Archive: <http://mail.gnu.org/pipermail/bug-cvs/>
Date: Mon, 4 Jun 2001 14:21:41 -0500
X-Mozilla-Status2: 00000000



Hello,

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.

Thanks,
Ray

__________________________
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
address@hidden
http://mail.gnu.org/mailman/listinfo/bug-cvs






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]