[p4] Is there a command in Perforce that could tell me whichchangelists were included in the last sync I did?

G. Matthew Rice matt at starnix.com
Mon May 14 08:48:09 PDT 2007


"Ivey, William" <william_ivey at bmc.com> writes:
> > -----Original Message-----
> > After doing a p4 -c <workspace> sync
> >
> > u1c332 at plbc0111:~> p4 files '#have' | sed 's/.*change 
> > \([0-9]*\).*/\1/'
> > | sort -un | tail -1
> > 
> > #have - file(s) not on client.
> 
> I assume you filled in <workspace> with the name of an
> actual client. In that case, you need to modify your
> files command to match:
> 
> p4 -c <workspace> files '#have'
> 
> This should also work, though:
> 
> p4 files @<workspace>

I should apologize for all of this confusion. This is what I get for
rushing off an answer when I had to get somewhere :)

The most succinct option is definitely the previously mentioned tech note:

        http://www.perforce.com/perforce/technotes/note051.html

TTYL,
-- 
g. matthew rice <matt at starnix.com>      starnix care, toronto, ontario, ca
phone: 647.722.5301 x242                                  gpg id: EF9AAD20
http://www.starnix.com              professional linux services & products


More information about the perforce-user mailing list