[p4] normdir ???
Biswajit Dash
biswajitind at yahoo.com
Wed Dec 12 18:43:11 PST 2007
Thats a very nice way to explain.
When I started using Perforce, It looked
"counter-intuitive" to me as well.
Later I realised, that, Perforce keeps the have list
for files alone. so when we remove files from
workspace,
for each file in have list
(or a subset, specified in commandline) {
remove the file from wokspace
}
To remove empty directories one more parse is needed
to search all directories which are empty, and remove
them.
* note that, There could be empty directory which is
NOT a result of p4 sync #none command. which might
have been created mannually. perforce will ahve to
take care of that as well.
Perforce aims at providing maximum speed, and looks at
all possible scenerios which can provide better speed.
Its the choice between,
- leaving empty directories by default and have option
to remove them. and
- Doing extra work of deleting empty directories with
every p4 sync #none, which, in a rare case might be a
fucntional requirement.
Regards,
Biswajit.
--- Tony Sweeney <sweeney at addr.com> 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.
> > -------------------
> > 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
> > AIM: roysmith649
> >
> > _______________________________________________
> > perforce-user mailing list -
> perforce-user at perforce.com
> >
>
http://maillist.perforce.com/mailman/listinfo/perforce-user
> >
> >
> >
> _______________________________________________
> perforce-user mailing list -
> perforce-user at perforce.com
>
http://maillist.perforce.com/mailman/listinfo/perforce-user
>
Why delete messages? Unlimited storage is just a click away. Go to http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html
More information about the perforce-user
mailing list