-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configuration of conflict resolver #55
Comments
Me and @ohumbel discussed about this issue today. A suitable default value could be 10. What I fear a bit is that under some circumstances unnecessary commands get spammed. For example, assume that the connection to the server get lost. In this case it will go through all (1000) and in the end it still fails, and you dont know why. If there are only 10 changeset you might figure out, what is responsible for the conflict. Also I think there are conflicts, which not get resolved by accepting multiple changeset (at least I think I got some of them in our companies-repo). Is this approach suitable for you jacob? |
Yes, that would be a fine solution. 😄 I haven't seen the need to accept more than 10-15 change sets together. The important thing is that change sets from different users can be accepted together. |
Are you going to work on it, or should I have a go? |
I plan to, but I want to solve issue #52 first, so that only change sets from the same component are considered for conflict resolution. So please feel free to work on this, I'll take care of merging ;-) |
assignes to @jacobilsoe |
So with this new option I suppose we no longer need the arereleatedmergechangesets method. Only the number of change sets specified in the option is needed. The number of change sets accepted together will continually increase until it success or the max value is reached. |
Yes, exactly |
...and with #52, I'll feed you with the change sets from the right component. |
Is it just me or do you also have 7 failing tests? I run tests like this: python.exe -m unittest discover -s tests and e.g. the test test_splitoutputofgitstatusz_filterprefix_double_question (test_gitFunctions.GitFunctionsTestCase) fails with: FileNotFoundError: [Errno 2] No such file or directory: './resources/test_ignore_git_status_z.txt' It looks like some relative path is wrong. |
If I run them like you, I also get those 7 errors. |
The tests now pass fine from |
Thanks! |
Just tested on a problematic stream, and for the first time the migration succeeded without requiring any manual intervention. This is nice. 😄 |
Very cool ⭐ ✨ |
Nice, glad that it works out as expected. 😄 |
Now it works also in windows, 💯 it wasnt implemented os independent (there were hardcoded |
Thanks - my fault only testing on Linux... |
No big deal. I usually dont test on linux as well 😛 |
It would be nice to have an option to control what change sets the conflict resolver picks to accept.
Right now, only change sets belonging to the same author or change sets with "merge" in the comment text are accepted together. I have several examples where change sets from different authors need to be accepted together to resolve a conflict.
IMO, the resolver should continue accepting change sets together until there are no more change sets. - and only then give up. It should succeed at some point.
The text was updated successfully, but these errors were encountered: