[p4] normdir ???

Rick Macdonald rickmacd at shaw.ca
Wed Dec 12 18:01:20 PST 2007


Tony Sweeney wrote:
> Roy Smith wrote:
>   
>> By default, the "normdir" option is set in new client specs.  Why?   
>> This seems counter-intuitive.  Is there some non-obvious problem I'm  
>> going to encounter if I set "rmdir" on all my clients?
>>   
>>     
> Consider the case where you sync some source to a directory and run a 
> build that leaves derived objects such as .o or .class files laying 
> around.  Now sync the #0 revision of all the files that came from 
> Perforce.  What should Perforce do with the directory?  The derived objects?
>
> Tony.
>   
Tony - in the example you've given, Perforce will do nothing regardless 
of the setting. The Perforce client "rmdir" option only removes the 
directory if it's empty. I've used the rmdir option for 10 years now 
with no ill effects. I appreciate Roy's question. I've never thought of 
a case where I wouldn't use the rmdir setting, but I assume there are some.

...RickM...


More information about the perforce-user mailing list