[p4] integrating when destination has been deleted

Ivey, William william_ivey at bmc.com
Fri Sep 1 12:32:16 PDT 2006


My point was why add a superfluous command to Perforce to handle
directories when you could just overload the existing command.
(As SVN does.) Then I can just feed p4 add arbitrary input
without worrying about whether it's all files, all directories,
or a mix. (Just as I can now with a mix of files and symbolic
links.)

-Wm

> -----Original Message-----
> From: Weintraub, David [mailto:david.weintraub at bofasecurities.com]
> Sent: Friday, September 01, 2006 9:23 AM
> To: Ivey, William; perforce-user at perforce.com
> Subject: RE: [p4] integrating when destination has been deleted
> 
> 
> > How would you (easily) recursively add a directory
> > tree if you have to issue a different command for
> > files and directories?
> 
> In Subversion, adding a directory automatically adds all the files in
> that entire directory tree. Although, there is a "svn mkdir" command,
> that's only used if the directory you're creating doesn't 
> already exist
> in your work folder. If you're adding a directory tree, you use the
> "add" command (which is the same command for adding a file). 
> Subversion
> is smart enough to see it's a directory, and realize you want to add
> that element to the repository as a directory. It is also smart enough
> to realize that you probably also want to add all the files under that
> directory too.



More information about the perforce-user mailing list