Changes of a file in different change sets
Hi,
If I am working on 2 change sets concurrently and both require changes of a same source file.
Scenario.
1. Make local change to A.java (Unresolved folder)
2. Check-in A.java to Change Set A-1 (Outgoing folder)
3. Make another local change to A.java (Unresolved folder)
4. Check-in A.java to Change Set A-2 (Outgoing folder)
Question
1. Can step 4 be executed successfully? I got an error when i tried that.
2. When step 3 is done, does the content of A.java in the outgoing folder updated with the latest changes, or does it only contain changes from step 1 (and not step 3)?
3. What is the best practice to manage concurrent changes of the same file to different change sets?
Appreciate your prompt help in this.
If I am working on 2 change sets concurrently and both require changes of a same source file.
Scenario.
1. Make local change to A.java (Unresolved folder)
2. Check-in A.java to Change Set A-1 (Outgoing folder)
3. Make another local change to A.java (Unresolved folder)
4. Check-in A.java to Change Set A-2 (Outgoing folder)
Question
1. Can step 4 be executed successfully? I got an error when i tried that.
2. When step 3 is done, does the content of A.java in the outgoing folder updated with the latest changes, or does it only contain changes from step 1 (and not step 3)?
3. What is the best practice to manage concurrent changes of the same file to different change sets?
Appreciate your prompt help in this.
2 answers
On 9/11/2011 10:53 PM, erwl88 wrote:
If you want perform step 4, after step 2, you need to right click on
change-set A-1, and apply the "complete" operation.
It depends on whether you have the "auto-checkin" preference set (it is
off by default).
You need to "complete" your changes for that file for one of the change
sets before you can checkin changes to that file to a different change set.
Cheers,
Geoff
Hi,
If I am working on 2 change sets concurrently and both require changes
of a same source file.
Scenario.
1. Make local change to A.java (Unresolved folder)
2. Check-in A.java to Change Set A-1 (Outgoing folder)
3. Make another local change to A.java (Unresolved folder)
4. Check-in A.java to Change Set A-2 (Outgoing folder)
Question
1. Can step 4 be executed successfully? I got an error when i tried
that.
If you want perform step 4, after step 2, you need to right click on
change-set A-1, and apply the "complete" operation.
2. When step 3 is done, does the content of A.java in the outgoing
folder updated with the latest changes, or does it only contain
changes from step 1 (and not step 3)?
It depends on whether you have the "auto-checkin" preference set (it is
off by default).
3. What is the best practice to manage concurrent changes of the same
file to different change sets?
You need to "complete" your changes for that file for one of the change
sets before you can checkin changes to that file to a different change set.
Cheers,
Geoff