28 messages in com.perforce.perforce-user[p4] what label am I synced to?| From | Sent On | Attachments |
|---|---|---|
| Karl Elvis MacRae | 26 Mar 2003 09:43 | |
| Dave Hildebrandt | 27 Mar 2003 09:37 | |
| Karl Elvis MacRae | 27 Mar 2003 09:41 | |
| Robert Cowham | 27 Mar 2003 09:58 | |
| William Suetholz | 27 Mar 2003 10:59 | |
| Stephen Ng | 27 Mar 2003 11:17 | |
| Jason Williams | 27 Mar 2003 12:04 | |
| William Suetholz | 27 Mar 2003 12:08 | |
| Stephen Ng | 27 Mar 2003 12:11 | |
| Jason Williams | 27 Mar 2003 12:20 | |
| Bennett, Patrick | 27 Mar 2003 12:21 | |
| Stephen Ng | 27 Mar 2003 12:37 | |
| Shelley L. Shostak | 27 Mar 2003 12:47 | |
| Jason Williams | 27 Mar 2003 12:55 | |
| Dave Lewis | 27 Mar 2003 13:02 | |
| Jason Williams | 27 Mar 2003 13:14 | |
| Ed Mack | 27 Mar 2003 13:14 | |
| Robert Conklin | 27 Mar 2003 13:22 | |
| Bennett, Patrick | 27 Mar 2003 13:25 | |
| Dave Lewis | 27 Mar 2003 13:45 | |
| Jeff A. Bowles | 27 Mar 2003 14:36 | |
| wsue...@centonline.com | 28 Mar 2003 08:09 | |
| Dave Hildebrandt | 28 Mar 2003 17:05 | |
| Chuck Karish | 29 Mar 2003 10:11 | |
| Brian Colfer | 02 Apr 2003 10:50 | |
| Bennett, Patrick | 02 Apr 2003 11:03 | |
| Brian Colfer | 02 Apr 2003 11:33 | |
| Chuck Karish | 02 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




