[p4] script to transfer revisions and history

barries barries at slaysys.com
Tue Apr 24 12:52:01 PDT 2001


On Tue, Apr 24, 2001 at 11:18:56AM -0700, Steve James wrote:
> Does anyone know of an existing script that will transfer a tree of files
> from one perforce server to another but doing so revision-by-revision so as
> to retain history information?   I realize timestamp information would be
> lost but saving the history is the important thing.

We're working on a package called "VCP", which is written in Perl. It's
in beta now, we're still working the kinks out of it, but it does what
you want (we hope :-). It's not ported to WinXX, yet, do you have a Unix
host with p4 available?  The p4d can be anywhere, but the p4 has to be
on the local Unix host.

The main documentation is at:

   http://search.cpan.org/doc/RBS/VCP-0.062/lib/VCP.pm

If you want to get started, you can install it using CPAN:

   perl -MCPAN -e 'install("VCP")'

I've only recently gotten that install process working, there are still
likely to be glitches.

Let me know if you want to play with it.

- Barrie



More information about the perforce-user mailing list