RTC Ignord Element Gets Overwritten During Accept
Diane Durham (16●3●4)
| asked Jan 14 '16, 12:12 p.m.
edited Jan 19 '16, 6:15 p.m. by Lisa Frankel (546●2) We have users that want to have local changes in their RTC workspace that aren't overwritten with merges. Here is the scenario:
Problem is that the changes I made in step 2 are overwritten completely. They are lost. The desired affect would be to prompt me and tell me I am about to accept something that has been ignored and therefore my local changes will be overwritten and give me the option to:
a. back out
Does anybody know how this problem can be avoided? If not, then I don't see the usefulness of the ignore feature unless you ignore elements that have never been checked into RTC.
|
One answer
Ralph Schoon (63.5k●3●36●46)
| answered Jan 15 '16, 7:34 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
https://jazz.net/help-dev/clm/index.jsp?re=1&topic=/com.ibm.team.scm.doc/topics/t_scm_eclipse_ignore.html&scope=null explains what the ignore does - it is basically not what you think it does.
The ignore feature is designed to be able to ignore files from ever being checked in, like object files or generated files. https://jazz.net/library/article/126 is also a good article to understand the basic concepts. If you have a file you are changing locally and you want to preserve, check it in. Before accepting you can decide to suspend the work or some work you are working on currently. This pulls the changes out of your repository workspace and keeps them. You can then accept the changes from the stream. You can resume your work later, which might require a merge. Comments
Diane Durham
commented Feb 01 '16, 10:50 a.m.
Yes, the ignore functionality is a little tricky. You have to understand it completely. For example, if you ignore something globally like files ending in ".suo", and if prior to that some ".suo" files were checked in, the only way to remove them and deliver to the team is to remove the global rule first. Otherwise, deleting them from your sandbox won't show up in the Unresolved folder. I think it only makes sense to ignore a file that has never been checked in, otherwise ignore should be used with caution. Still, folks would like to have some functionality like ClearCase has hijacking. If you have a hijacked file and you merge something into it, ClearCase will let you keep your local hijacked changes anyways. For Jazz, I will recommend to developers to have a separate change set for 'local' changes and to suspend them every time they want to Accept. Thanks for your input. |
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.