[p4] Syncing only to labeled files using p4 command line

Ken.Williams@thomson.com Ken.Williams at thomson.com
Wed May 3 13:25:40 PDT 2006


Thanks Shawn.  The following solutions from you and Jeff Grills fit my
need nicely and seem to be equivalent:
 
 p4 sync ...@=LastWorkingRevision
 p4 sync ... at LastWorkingRevision,LastWorkingRevision
 p4 sync ... at LastWorkingRevision, at LastWorkingRevision
 
I'm not quite sure why that second one works, but it does seem to.
 
The error message when the label is empty is a little weird, but I can
live with that:
 
% p4 sync -n ...@=LastWorkingRevision
...@=LastWorkingRevision - no permission for operation on file(s).

 -Ken




________________________________

	From: Shawn Hladky [mailto:p4shawn at gmail.com] 
	Sent: Wednesday, May 03, 2006 2:59 PM
	To: Williams, Ken (TLR Corp)
	Cc: perforce-user at perforce.com
	Subject: Re: [p4] Syncing only to labeled files using p4 command
line
	
	
	p4 sync ...@=LastWorkingRevision
	
	
	On 5/3/06, Ken.Williams at thomson.com <Ken.Williams at thomson.com>
wrote: 

		Hi,
		
		This strikes me as a question I should probably already
know the answer
		to, but I couldn't seem to find it from perusing the
Tech Notes on 
		labels, or the section of Chapter 6 in the docs on
labels.
		
		I've got a label called "LastWorkingRevision", which is
a light-weight
		way for our developers to indicate the last working
revision of a set of 
		files they're working on when they know the head
revision is broken.
		The idea is that if syncing to head & building & testing
fails, team
		members should be able to sync to head then sync to this
label and 
		probably get a working build.
		
		Using p4win, we can sync to head, then right-click on
the label and
		select "sync specific files to label" to achieve this
effect.  Using the
		p4 command-line client (on Linux) though, I'm not sure
what the easiest 
		way is.  If we do "p4 sync ... at LastWorkingRevision", all
files not
		mentioned in the label are deleted.
		
		Any tips?
		
		-Ken
		
		_______________________________________________
		perforce-user mailing list  -
perforce-user at perforce.com
	
http://maillist.perforce.com/mailman/listinfo/perforce-user
		





More information about the perforce-user mailing list