[p4] Bug in "p4 dirs"? Doesn't list unless sync'd
Peter Stephenson
pws at csr.com
Tue Mar 21 07:58:10 PST 2006
Rick Macdonald wrote:
> Note how "v5.00" doesn't show up when I use the "*", until I sync at
> least one file. Still seems like a bug to me.
>
> $ p4 dirs -D //vega/xp/dev/rickm/SCM/sam/zsignal/%%1
> //vega/xp/dev/rickm/SCM/sam/zsignal/v4.00
> //vega/xp/dev/rickm/SCM/sam/zsignal/v4
> //vega/xp/dev/rickm/SCM/sam/zsignal/v5.00
> //vega/xp/dev/rickm/SCM/sam/zsignal/v5
> //vega/xp/dev/rickm/SCM/sam/zsignal/xp
> $ p4 dirs -D //vega/xp/dev/rickm/SCM/sam/zsignal/*
You haven't quoted the "*", so it's being expanded immediately by the
shell. Usually this won't happen, since the path is likely to be rather
different, but in your case...
> $ p4 sync //vega/xp/dev/rickm/SCM/sam/zsignal/v5.00/README
> //vega/xp/dev/rickm/SCM/sam/zsignal/v5.00/README#1 - added as
> /vega/xp/dev/rickm/SCM/sam/zsignal/v5.00/README
aha! this is the information we were missing. The shell compresses the
// to / (this is standard UNIX behaviour) and finds that
/vega/xp/dev/rickm/SCM/sam/zsignal/*
expands to all the existing files in the directory. What gets passed to
p4 is that set of files, which therefore only tells you about what's
there already.
Try:
p4 dirs -D //vega/xp/dev/rickm/SCM/sam/zsignal/\*
--
Peter Stephenson <pws at csr.com> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php
More information about the perforce-user
mailing list