ClearCase: Copy old versions with Snapshot Views under Windows

Posted by cogmios on Stack Overflow See other posts from Stack Overflow or by cogmios
Published on 2010-04-15T09:16:53Z Indexed on 2010/04/15 9:23 UTC
Read the original article Hit count: 567

Filed under:

Using IBM Rational ClearCase: - I have only access to Snapshot Views so NO dynamic Views

I want to copy ALL versions from a certain changeset to c:\temp. I have already listed the changeset versions in a file (couple of hundred of versions, I only need the latest one), I do not have a baseline over this older set.

What I now have and does not work:

#!/usr/bin/perl -w
#
#  PROGRAM: copytest.pl
$filename = "Design test123.doc";
$view = "D:\\AdminViews\\ABC_R1_READ_2\\ABCD002\\ABC_DESIGN\\BLA Framework\\P0\\";
$version = "\\main\\ABC_R1_READ\\1";
$printhet = 'cleartool find . -name "' . $filename . '" -version version(' . $version. ') -exec "cmd /c copy %CLEARCASE_XPN% D:\temp\%CLEARCASE_PN%"';
system($printhet);

© Stack Overflow or respective owner

Related posts about clearcase