Here's my scenario:
I have two projects projectA and projectB. A branchspec auto-integrates projectA to projectB. Now, I have a changelist which modifies some files in projectA -- I have not committed/submitted this changelist yet.
I'd like this changelist to go into projectB only.
Doing a p4 integrate -b branchspec -c changelistNumber
shows
"All revision(s) are integrated."
How can I integrate an uncommitted changelist?
Perforce has a much easier way of accomplishing this:
Shelve your changelist on branchA (note the changelist #, we'll call it NUM for reference here)
Create a branch mapping between branchA and branchB (we'll call it A_to_B)
Run the following command:
p4 unshelve -s NUM -b A_to_B
Hack-ish solution:
Another approach is to create a separate branch where you do your work and then integ to A or B as needed.
The general idea is that Perforce works in terms of submitted or shelved changelists. The idea of integrating an non-committed changelist seems to go against Perforce's natural grain which makes these workarounds cumbersome.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With