Delivering these changes would introduce gaps
Yehia Abo Sedera (16●1●2)
| asked Oct 04 '13, 3:55 p.m.
JAZZ DEVELOPER retagged Jun 25 '14, 2:41 p.m. by David Lafreniere (4.8k●7)
Well,
I have made some changes to some files and created a new change set and marked it as "Complete" however when I try to deliver them it show me this error: "Delivering these changes would introduce gaps in the stream. You are trying to deliver a subset of the outgoing change sets but they need to be delivered together because of dependencies between them." I am unable to resolve this error Note: I have some completed change sets(it won't be delivered, unable to suspend or discard them for the same error ), that have the some common files with change sets to be delivered. |
Accepted answer
You can't deliver without the change sets with the old code. SCM is change set based and relies on the information in the previous change set to create a history.
If you truly don't need that code anymore, you'll have to suspend everything and recreate a new change set that doesn't depend on the change sets you didn't want to deliver. For example: 1. Change fileA and check it in. Complete the change set and call it CS1. 2. Change fileA and check it in. Complete the change set and call it CS2. 3. Attempt to deliver CS2 and discover it will produce a gap. To maintain a coherent history, your deliver target (ie. your stream) needs to know the state of fileA before and after your delivery. CS2 describes what happened from CS1 to the end. The gap is the part that describes how fileA got to CS1. You can fix this by suspending both CS1 and CS2 and redoing the changes made in CS2. Take a look at the history of one of your files that exists in the change sets you want to deliver and also in the change sets that you don't want to deliver. You'll see that trying to deliver some of the change sets will create a gap in the history that is not allowed by SCM. Yehia Abo Sedera selected this answer as the correct answer
Comments Tim's answer is correct.
Below are some videos which show this feature:
|
One other answer
Are you able to suspend all the change sets? If so then you might be able to resume just the one you want, though you'll probably end up having to do it as a patch.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.
Comments
I take it that you are trying to selectively deliver? What's the purpose of the change sets that you mentioned in your note at the end?
Those changesets are the source of your problem.
Currently I don't need them ... it is just bunch of old code that won't be delivered .. any idea how to discard them ??