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:Rick Macdonald (ric@vsl.com)
Date:03/02/2001 03:01:16 PM
List:com.perforce.perforce-user

On Fri, 2 Mar 2001, Dan Kegel wrote:

No, I do care. I don't want to do a revert.

The whole thrust of my writing has been to point out that your "sync -f --all" idea _is_ the same as doing a revert! As far as the depot knows, you're overwriting the copy that you have out for edit (and have made changes to) with a fresh copy (pre-changes) from the depot. That _is_ the definition of revert, but you want to use sync to do it.

The catch is that you've tricked the depot and changed to a new directory that is empty. So, you're not overwritting your changed copy; you're "syncing -f" into a new directory. You know that, but the depot (sync) doesn't.

Also in your example, the files are still left open for edit after being overwritten with the pre-edit version (ie revert!). This is the idea of "revert --reopen".

You don't really even need the files open for edit after the new client is sync'd. Just set the clientspec "allwrite" flag and you can apply the path to see if it works.

All of this boils down to the "Perforce way" of not lying to the depot, since it tracks what you have and what you've done. The steps that you don't like to learn and use are far easier and safer than the confusion that can happen when you play tricks on the depot!

...RickM...