[p4] Syncing to USB drive - then changing computers
Jeff A. Bowles
jab at pobox.com
Wed Apr 16 08:59:48 PDT 2008
I believe that Steve Vance's suggestion ("sync -k") was the same as this.
"sync -k" is a newer version of the "flush" you're talking about.
-Jeff Bowles
On Tue, Apr 15, 2008 at 9:07 PM, Jeff Younker <jeff at drinktomi.com> wrote:
> You don't need to have the same client spec, same machine name, same
> path, etc.
> 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, and
> 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 -
>
> _______________________________________________
> perforce-user mailing list - perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
>
--
---
Jeff Bowles - jeff.a.bowles at gmail.com
More information about the perforce-user
mailing list