Jazz SCM : Accepting Changes overwrite local Changes
Lets suppose 2 developers are working on same project
Dev1 : Modified Test.java File (Delivered on the server)
Dev2 : Working on Test.java in local Sandbox
Now the scenario is Dev2 received incoming change-set with file Test.Java and he accepted the change-set. The Accept operation just overwrite the Local sandbox File on Dev2 Machine and he lost all changes.
My Question is there should be some Pop Up or alert for merging / overwriting the file? Is there any workaround/option for this?
Dev1 : Modified Test.java File (Delivered on the server)
Dev2 : Working on Test.java in local Sandbox
Now the scenario is Dev2 received incoming change-set with file Test.Java and he accepted the change-set. The Accept operation just overwrite the Local sandbox File on Dev2 Machine and he lost all changes.
My Question is there should be some Pop Up or alert for merging / overwriting the file? Is there any workaround/option for this?
2 answers
I am pretty sure that the client would detect the pending changes locally and during accept it would ask the user (in a pop up) if they want to check in their local change. The user can either check in the change or stop the accept and check in and suspend the change. Or they can ignore the messages and overwrite the local files.
Comments
Ideally that is a conflict situation and should prompt the user for resolving it. If a Auto-resolve is not possible, (in your case, autoresolve wouldn't be possible because any tool would not automatically know if the incoming content is to be kept of the local content), it will allow the user to resolve with mine (local changes) or resolve with proposed (the incoming changes). Based on the users action, the local or the remote content would be used.
Below is an article that describes various conflicts and also the tool behavior when such a conflict occurs :
https://jazz.net/library/article/39
I believe the first Example discussed here matches your case : https://jazz.net/library/article/39#Example_1
It also suggests ways to resolve specific kinds of conflicts.
Below is an article that describes various conflicts and also the tool behavior when such a conflict occurs :
https://jazz.net/library/article/39
I believe the first Example discussed here matches your case : https://jazz.net/library/article/39#Example_1
It also suggests ways to resolve specific kinds of conflicts.