Scenario 1: You forgot to map a file
Suppose you wrote a new class in C++:
src/module/UserUtils.cpp
and it uses the header file
inc/UserUtils.h
. You then issue this command:
$ p4 submit UserUtils.cpp
Your build script complains about the missing include file
UserUtils.h
. To fix this, you would issue the following
commands:
$ p4 unsubmit UserUtils.cpp
$ p4 resubmit -e
Now UserUtils.cpp
is open. You would then run:
$ p4 add -c NNN UserUtils.h
$ p4 resubmit -Re
Where NNN is a changelist number.
Now the permanent history shows that your change contains both
UserUtils.cpp
and UserUtils.h
.