tags:

views:

106

answers:

1

Is it possible to add all new files using p4 add command.

Actually I do not want to pass each file names or any wild chard pattern with p4 add command.

same question for p4 edit operation. Edit all files which are modified at client side.

Any suggestions?

+2  A: 

Look at http://kb.perforce.com/UserTasks/WorkingDisconnected, in particular:

p4 diff -se //myclient/... | p4 -x - edit
find . -type f -print | p4 -x - add

If you are connected, then it's better to do p4 edit before editing files, as that allows other people to see that you are editing the files.

Douglas Leeder
Thanks Douglas, this information is really needful for me and it solves my problem.
praveen
Hi Douglas, Please see my next perforce question here: http://stackoverflow.com/questions/1866373/how-to-perform-p4-submit-operation-without-passing-description-inside-the-p4-subm
praveen
You haven't accepted this answer yet...
Douglas Leeder
Hi Douglas, please see my question http://stackoverflow.com/questions/1866373/how-to-perform-p4-submit-operation-without-passing-description-inside-the-p4-subm , thanks in advance.
praveen