1

Following scenario:

first I open all project files for edit with

p4 edit ...

then several files are manually deleted from a Perforce workspace directory (not with p4 delete command).

How do I mark all the deleted files as deleted in a changelist?

If to compare with Git I'm looking for a command like:

git add --all *

Question concerns p4 or/and p4v, I know that p4eclipse has this feature.

Toby Allen
  • 10,997
  • 11
  • 73
  • 124
S. Pauk
  • 5,208
  • 4
  • 31
  • 41

1 Answers1

3

Run:

p4 reconcile

In P4V the equivalent is "Reconcile Offline Work..."

Samwise
  • 68,105
  • 3
  • 30
  • 44
  • `p4 reconcile` works when a deleted file wasn't open. However in my scenario I first open all the project files and then delete some of them (via IDE). In this case reconcile returns `No file(s) to reconcile.` – S. Pauk Apr 07 '15 at 10:33
  • upvoted since this solution works fine in case if file is not opened for edit – S. Pauk Apr 07 '15 at 14:33
  • Check out change #841159 in http://www.perforce.com/perforce/doc.current/user/relnotes.txt, then upgrade. :) In previous releases, an easy workaround is to do "p4 revert -k" before "p4 reconcile". – Samwise Apr 07 '15 at 18:45
  • Upgrade is not an option, however `revert -k` looks promising. I'll check it in a few hours when I'll be back to work. – S. Pauk Apr 07 '15 at 19:12