[p4] Syncing to USB drive - then changing computers
jeff at drinktomi.com
Tue Apr 15 21:07:12 PDT 2008
You don't need to have the same client spec, same machine name, same
You do need the same line endings in both places. You can ensure
this using the
line ending options in your client specs. Machine #1 is your
machine #2 is their machine.
First, revert/submit all open files on client #1
Record the current change list number. I'll call this CHANGENUM.
p4 counter changes
Sync to local area on machine on machine #1:
p4 sync /my/local/path/... at CHANGENUM
Copy to USB drive.
(on unix, cp -rp /my/local/path /the/usb/disk/path)
Mail USB drive.
Receiver clears out their perforce space
(on unix, rm -rf /their/local/path)
Receiver copies files to machine number two
(on unix, cp -rp /the/usb/disk/path /their/local/path)
Receiver flushes their local workspace to CHANGENUM
p4 flush /their/local/path/... at CHANGENUM
Receiver can now p4 sync down recent changes
p4 sync /their/local/path/...
The key to this operation is 'p4 flush'. It's just like sync, but
it doesn't alter the disk. It just updates the client spec.
- Jeff Younker - jeff at drinktomi.com -
More information about the perforce-user