[p4] script to transfer revisions and history

Robert Cowham robert at vaccaperna.co.uk
Tue Apr 24 14:26:02 PDT 2001


There is a script called perfmerge.pl (available from support) which will
combine the metadata for two servers using their checkpoints. Note that this
involves renumbering changelists, and it also requires the filepaths in each
server to be unique.

Then as Chuck says you can copy across the depot files, merge the metadata
and restore from it (after deleting db.*). If you only want a subset of one
server then just obliterate the ones you don't want (before or after the
merge - before may be easier).

Use p4 verify liberally (before and after), take backups, and be very
careful!! It does work.

Robert

> -----Original Message-----
> From: perforce-user-admin at perforce.com
> [mailto:perforce-user-admin at perforce.com]On Behalf Of Chuck Karish
> Sent: Tuesday, April 24, 2001 09:30
> To: Steve James; 'perforce-user at perforce.com'
> Subject: Re: [p4] script to transfer revisions and history
>
>
> At 11:18 AM 4/24/01 -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.
>
> If you're feeling brave you may be able to save your modification times
> and complete the whole process more quickly this way:
>
> - Take checkpoints of both servers.
> - Copy the data files from the old server to the new server (or mount the
>    old server's data drive in an appropriate place).
> - Edit the checkpoint file from the old server to correspond to the
>    file locations on the new server.
> - Concatenate the checkpoint files and rebuild the metadata from the
>    resulting checkpoint file.
> _______________________________________________
> perforce-user mailing list  -  perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user




More information about the perforce-user mailing list