28 messages in com.perforce.perforce-user[p4] what label am I synced to?
FromSent OnAttachments
Karl Elvis MacRae26 Mar 2003 09:43 
Dave Hildebrandt27 Mar 2003 09:37 
Karl Elvis MacRae27 Mar 2003 09:41 
Robert Cowham27 Mar 2003 09:58 
William Suetholz27 Mar 2003 10:59 
Stephen Ng27 Mar 2003 11:17 
Jason Williams27 Mar 2003 12:04 
William Suetholz27 Mar 2003 12:08 
Stephen Ng27 Mar 2003 12:11 
Jason Williams27 Mar 2003 12:20 
Bennett, Patrick27 Mar 2003 12:21 
Stephen Ng27 Mar 2003 12:37 
Shelley L. Shostak27 Mar 2003 12:47 
Jason Williams27 Mar 2003 12:55 
Dave Lewis27 Mar 2003 13:02 
Jason Williams27 Mar 2003 13:14 
Ed Mack27 Mar 2003 13:14 
Robert Conklin27 Mar 2003 13:22 
Bennett, Patrick27 Mar 2003 13:25 
Dave Lewis27 Mar 2003 13:45 
Jeff A. Bowles27 Mar 2003 14:36 
wsue...@centonline.com28 Mar 2003 08:09 
Dave Hildebrandt28 Mar 2003 17:05 
Chuck Karish29 Mar 2003 10:11 
Brian Colfer02 Apr 2003 10:50 
Bennett, Patrick02 Apr 2003 11:03 
Brian Colfer02 Apr 2003 11:33 
Chuck Karish02 Apr 2003 17:07 
Subject:[p4] what label am I synced to?
From:Dave Lewis (dle@vignette.com)
Date:03/27/2003 01:02:51 PM
List:com.perforce.perforce-user

Now, to the real question everyone's asking:

> > 1. Run "p4 changes -m1 -s submitted //depot/codelinename/..." > > to get the changelist number for the most recent change to that > > subtree as of now. > > Remember it in your script and version.h/version.java file. > > 2. Then run the command "p4 sync //depot/codelinename/... at THATCHANGE" > > to pull the code down. > > I understand why this works. My question is, does the following work? > > > First I do: > > p4 sync > > > > Then I do: > > p4 changes -m1 @myclient > > and write down the changelist number (call it X). > > > > Later on, I can do p4 sync @X to get the same set of files. > > Why would I want to do this, when I could just use your procedure? > Maybe no good reaason. Maybe I just want to have a deeper understanding > of how Perforce works.

the "p4 changes -m1 @myclient" is very expensive to do if a client is very large. For some of ours, it came out to about 50 seconds of server time vs. about 1/2 (probably much less)sec for a simple p4 changes -s submitted -m1

In point of fact, a simple p4 changes -s submitted -m1 will work just fine to determine a changenumber that can be used to reproduce your build. The changenumber it returns does not even have to apply to the set of files in your client! It *is* nicer to have the exact changenumber for your client. I ended up doing this by doing a p4 files on the client and finding the largest changenumber.

Its possible that a lot of this has been speeded up in recent releases...

dave