11 messages in com.perforce.perforce-user[p4] how to get a list of files not c...| From | Sent On | Attachments |
|---|---|---|
| Matthew Henry | 24 Jul 2003 07:48 | |
| Chris Parsons | 24 Jul 2003 08:06 | |
| Thierry TM. Michalowski | 24 Jul 2003 08:19 | |
| Chuck Karish | 24 Jul 2003 08:56 | |
| Stephen Vance | 24 Jul 2003 09:23 | |
| Matthew Henry | 24 Jul 2003 10:45 | |
| Rick Cameron | 29 Jul 2003 10:01 | |
| Jeff Younker | 29 Jul 2003 11:00 | |
| Jeff Younker | 29 Jul 2003 11:08 | |
| Richard Ramos | 29 Jul 2003 11:25 | |
| Will...@avl.com | 30 Jul 2003 01:51 |
| Subject: | [p4] how to get a list of files not checked in to the depot![]() |
|---|---|
| From: | Matthew Henry (ma...@iliumsoft.com) |
| Date: | 07/24/2003 10:45:00 AM |
| List: | com.perforce.perforce-user |
At least on windows XP, "p4 add ...cpp ...h" appears to attempt to add only the files that are ALREADY in the depot. Which isn't too useful for my purposes. ;-)
The answer with the smallest amount of code appears to be (on win XP).
"dir /s /b /a-d *.cpp,*.h | p4 -x - add"
In fact, I just ran it and it already found a file I added today that I forgot to add the depot.
Thanks to everybody.
At 12:23 PM 7/24/2003 -0400, Stephen Vance wrote:
Thierry --
You are correct. The "add new files" portion of tech note 2 (pointed out by Chris Parsons) suggests, adapted to Matthew's specific request:
p4 add ....cpp ....h
This will attempt to add all cpp and h files under the current directory, failing for any that already are known by the depot.
Steve
At 05:20 PM 7/24/2003 +0200, Thierry TM. Michalowski wrote:
My first guess would be that a "p4 add *.cpp" would just automatically add any .cpp file to the depot, while discarding the remaining as "already existing" there. Disclaimer: untested suggestion, just out of my head.
Cheers, Thierry Michalowski
-----Original Message----- From: Matthew Henry [mailto:matt at iliumsoft.com] Sent: Thursday, July 24, 2003 4:49 PM To: perforce-user at perforce.com Subject: [p4] how to get a list of files not checked in to the depot
I would like an easy way to see a list of all the files in a tree that are not in the depot. Ideally, filtered by extension.
In other words, give me all files in "mydir" and it's subdirectories that are .cpp or .h and do not exist in the depot.
Ideally it would have the option of automatically adding said files to a changelist.
I can write some jscript to do this, but I want to make sure I'm not reinventing the wheel. I don't see a way to do this from the command line or p4win, but it seems like this functionality would be useful to a lot of ppl; someone must have written something to do this already.
_______________________________________________ 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
Stephen Vance mailto:steve at vance.com http://www.vance.com/




