28 messages in com.perforce.perforce-user[p4] perforce and patch: a tip and tw...
FromSent OnAttachments
Dan Kegel02 Mar 2001 11:50 
Rick Macdonald02 Mar 2001 12:45 
Dan Kegel02 Mar 2001 12:53 
Dan Kegel02 Mar 2001 13:21 
John D. Mitchell02 Mar 2001 13:23 
Rick Macdonald02 Mar 2001 13:31 
Todd Short02 Mar 2001 13:35 
Dan Kegel02 Mar 2001 13:59 
Dan Kegel02 Mar 2001 14:04 
Dave Lewis02 Mar 2001 14:04 
Dan Kegel02 Mar 2001 14:08 
Dan Kegel02 Mar 2001 14:12 
Dan Kegel02 Mar 2001 14:37 
Lee Marzke02 Mar 2001 14:42 
Gordon Broom02 Mar 2001 14:46 
Rick Macdonald02 Mar 2001 15:01 
Dan Kegel02 Mar 2001 15:03 
Rick Macdonald02 Mar 2001 15:07 
Rick Macdonald02 Mar 2001 15:11 
Dan Kegel02 Mar 2001 15:16 
Dan Kegel02 Mar 2001 15:23 
Rick Macdonald02 Mar 2001 15:23 
Dan Kegel02 Mar 2001 15:28 
Rick Macdonald02 Mar 2001 15:33 
Dan Kegel02 Mar 2001 15:37 
Gordon Broom02 Mar 2001 16:17 
John D. Mitchell02 Mar 2001 16:41 
Steve Bennett05 Mar 2001 07:47 
Subject:[p4] perforce and patch: a tip and two enhancement requests
From:Dan Kegel (da@alumni.caltech.edu)
Date:03/02/2001 11:50:54 AM
List:com.perforce.perforce-user

I happily generate patches from perforce diff with the two-step process p4 diff -du > my.diff p4d2p < my.diff > my.patch where p4d2p is a script written by Gurusamy Sarathy; you can download it at http://www.kegel.com/p4d2p.pl

This works fine except for files with 'p4 add' pending; p4 diff doesn't show anything for those files :-(

It'd be nice if 'p4 diff' were enhanced to add a '--patch' option which generated real patches INCLUDING pending 'p4 add's. That's unlikely to happen anytime soon, since perforce isn't open source. Sigh.

Second problem working with patch: when I've put together what I think are a good set of changes, and I want to try them out on a fresh source tree, I'd love to go $ mv mydepot mydepot.old $ p4 sync -f mydepot/... and then apply the patch to my copy of the depot. But alas, 'p4 sync -f' doesn't give me the contents of any files where 'p4 edit' is pending.

It'd be REAL nice if 'p4 sync' were enhanced to add a '--all' option to get even the opened files. That's unlikely to happen anytime soon, since perforce isn't open source. Sigh.

- Dan