[p4] PVCS -> P4, with branches?

Matt Janulewicz matt.janulewicz at lucasfilm.com
Thu Oct 16 14:39:47 PDT 2008


Howdy -

Has anyone ever been able to use this tool and retain branches? I think 
I may have a PVCS Version Manager setup problem but I can't figure it 
out. I dig to a certain point in the code, my brain freezes, I fall to 
the floor and convulse, at some point I wake up and try again.

The net effect of my import process is that it recognizes that there are 
branches, I have a 'branches' file in my metadata, it looks correct, yet 
it imports everything in-line. During the import I get some output that 
looks like this:

Depot creation started         Thu Oct 16 12:16:29 2008
//depot/TEST_BRANCH/import/archives/dvd/www/admin/conf//dvd/www/admin/conf/cm.conf 
- file(s) not in client view.
Use of uninitialized value in concatenation (.) or string at Change.pm 
line 231, <CHANGES> line 1333.

I've traced that path to 'mkdepot.pl' line 225 or so. It's trying to do 
this:

    my $branched_file = convert::join_paths( "//depot",
        convert::rel_dir($archive,$branch_name),
        $workfile{$archive} );

I believe it is munging the "convert::rel_dir" part. The presence of the 
'archives' directory in the above 'munge' leads me to believe there is 
something wrong with the way our PVCS paths are arranged. I'm new here 
and haven't touched PVCS in a decade so I'm not sure how it's supposed 
to work. It appears as though the entire 
"import/archives/dvd/www/admin/conf/" segment in the path is not 
supposed to be there, but I can't figure out where it's getting that from.

Our PVCS root is at /data/pvcs/projects.

The project I want to import is /dvd.

However, in the filesystem this directory is at 
/data/pvcs/projects/archives/dvd.

If I set our root to /data/pvcs/projects/archives it says it can't run 
vlog because it can't find any projects. So it almost looks like our 
project definitions are one directory above where they are supposed to 
be ...?

I realize it's a long shot and I'm not sure how much effort I want to 
put into this, but when I suggested we not import any history or 
branches I thought I was going to be punched.

Any guidance would be greatly appreciated, especially as it pertains to 
how PVCS archives are usually arranged on disk and how that relates to 
the way the script expects it to be.

-- 
Matt Janulewicz
Perforce Administrator
Lucasfilm Entertainment Company Limited
matt.janulewicz at lucasfilm.com
415-746-5694



More information about the perforce-user mailing list