[p4] Detecting newly added files in linux

David Weintraub qazwart at gmail.com
Fri Apr 6 15:19:47 PDT 2007


So, are you asking for a way to add files that are currently in your
working directory, but not yet in Perforce, or are you asking to find
files that are in Perforce, but not yet on your system?

To add files in your current working directory into Perforce, you can do:

   $ find . -type f | p4 -x - add

This will attempt to add all files on your system into Perforce, but
if a file already exists in Perforce, you simply get an error. I am
not sure how this handles file names with spaces, but I believe it
does work.

More details are available in Tech Note #12:
<http://perforce.com/perforce/technotes/note012.html>.

On 4/6/07, Shiva Paranandi <shivaparanandi at gmail.com> wrote:
> Hi,
> My name is Shiva and don't know if this was already posted. We have a huge
> file system and developers keep adding new files all the time. Is there any
> easy way to detect all the files that exist on my local system but not in
> perforce? Any help would be appreciated.
>
> Thanks,
> Shiva.
> _______________________________________________
> perforce-user mailing list  -  perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
>


-- 
--
David Weintraub
qazwart at gmail.com


More information about the perforce-user mailing list