NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Comments (Score:1)
That's for the server. You only need theAPR libraries for the client.
(darren)
Re:Comments (Score:2)
Re:Comments (Score:1)
Re:Comments (Score:1)
When you disconnect, you stop using "p4 edit" and start using a homebrew script like "o4 edit" instead, which just chmods the files +w.
When you reconnect, use a script which runs "p4 diff" to compare your entire checked-out tree with the checked-in versions of those files. (Optionally, it can compare them with the revision they were checked out from, instead of HEAD, but no biggie).
If they differ, mark them as opened for changes 'em with "p4 edit". This will *not* check the latest code from the repo; instead it just marks the *current* file contents as changed and possibly requiring checkin.
Finally, "p4 sync; p4 submit". Any changes are checked in; any marked-for-edit files that haven't really changed, will be skipped since there's no delta; any conflicts have to be dealt with using "p4 merge". Super-easy!
for deleting files, renames, etc., things get a little trickier, but those are infrequent occurences. The above served me very well for a long time using p4 on dialup, and from the opposite corner of the world.
Reply to This
Parent
Re:Comments (Score:1)
Re:Comments (Score:2)