Can you reverse a change set that included a file property change?
Accepted answer
I have created a defect for it: Applying a patch with a line-ending property change does not work (342829)
In particular, the defect appears to not be in the creation of the patch (the patch appears to contain the right information), but rather the application of the patch.
Comments
Thanks Geoff glad to see I'm not crazy. :)
One other answer
Comments
Yes I can discard the change set from my repository workspace. It now shows as an incoming change set as we would expect. If I check the line delimiter property of a file it is set correctly. Question is, how do I propagate that back to the stream?
You can use the "replace" operation to replace the configuration in the stream with the configuration of your workspace. Do a quick check to see if there are any incoming changes on the stream from other developers, and accept those first, before doing the replace. Also, if there is a chance that another developer has already accepted that bad change set into their workspace, send out a notice to the team telling them to discard that change set from their workspace. Something that helps is to change the Summary of that change-set to something like "DO-NOT-DELIVER-THIS", so folks get reminded that this is a bad change-set.
Get your workspace into a state that you're comfortable with (it sounds like you're already in that state), then select the component in the Pending Changes view, and run 'Replace in <name-of-your-stream>'. That copies the state of the component in your workspace to the stream.
1 vote
Evan your suggestion to use 'Replace in <name-of-your-stream>' did the trick. I was able to get my stream back to its original state.
1 vote
Comments
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Jan 19 '15, 2:48 a.m.Not sure, however, it might be a good idea to create a baseline/snapshot next time before you do mass changes. That would allow to go back to the version before easier than reversing the change sets.