[p4] Finding changed files in workspace which p4 doesn't know about?

Russell Jackson rusty at rcjacksonconsulting.com
Fri Mar 16 09:45:25 PST 2007


The following steps are how you get your workspace back in sync with
Perforce:

p4 diff -se ... | p4 -x - edit
p4 diff -sd ... | p4 -x - delete
dir /s /b /a:-d | p4 -x - add (On Unix/Linux, this would be a find . -type f
-print instead of the dir command)

Review your changelist now, and if everything looks correct, submit your
changes.

Rusty

On 3/16/07, Roy Smith <smith_roy at emc.com> wrote:
>
> We've found a few scenarios where files can change in a workspace
> without p4 knowing about it.  For example:
>
> 1) Somebody creates a new file and forgets to do "p4 add"
>
> 2) Cygwin's brain-dead handling of file permissions lets you edit an
> existing file without doing a "p4 open".
>
> 3) Somebody deliberately (and stupidly) chmods a file so they can
> edit it.
>
> Is there any easy way to find all these?  Basicly, I want to answer
> the question, "If I did an rm -rf; sync -f", would I get back exactly
> what I've got now?"
>
>
> -------------------
> Roy Smith <smith_roy at emc.com>
> Software Guy, EMC Common Management Group
> 44 South Broadway, 7th floor
> White Plains, NY 10601
> (914) 580-3427
>
>
> _______________________________________________
> perforce-user mailing list  -  perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
>



-- 
--------------------------------------------------
RCJackson Consulting
Perforce Consulting Partner and Certified Trainer
--------------------------------------------------
rusty at rcjacksonconsulting.com
http://www.rcjacksonconsulting.com
tel: 512-535-7274
fax: 512-535-7322
--------------------------------------------------


More information about the perforce-user mailing list