[p4] Need to find most recent changelist for a given clientspec

Rick Macdonald rickmacd at shaw.ca
Wed Nov 12 07:54:41 PST 2008


$ p4 changes -c AUTOBUILD1 -m1 -s submitted | cut -d" " -f2
229399

Rick

Shehadeh, Karim wrote:
> What I would like to do is use the file mapping described in a
> clientspec to deterimine what the most recent changelist *for that set
> of files* is.  So, for example if I have a clientspec I've created for
> my build serve: AUTOBUILD1.  It contains a mapping that looks like this:
>
>  
>
> //depot/folder1/...
>
> //depot/folder3/...
>
>  
>
> So I want to get the most recent changelist for any files contained
> within those two folders and irrespective of who submitted those
> changes.
>
>  
>
> I know I can do something like this using p4 changes and passing in each
> folder path but what I really want to do is use a single command that
> takes clientspec and spits out a changelist number.  
>
>  
>
> Is this possible?   I should add that I would like to be able to do this
> using the command-line tool only although I can parse the output.
>
>  
>
> Thanks,
>
> Karim
>
>  
>
>  
>
> _______________________________________________
> 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