-
Notifications
You must be signed in to change notification settings - Fork 1
Missing merges in boinc-parentmap / meaning of mappings #23
Comments
I don't yet fully understand the possibilities and limitations of the parentmap feature arising from the different merge semantics in svn and git. Consider revisions 23916-23918 for instance: it seems as if in 23916 Charlie implemented a certain feature/workaround in branch
|
|
23917 isn't considered a merge by SVN. It was just a manually applied patch/commit without the merge meta data. |
Same with 23918. It was just a manually applied patch/commit without the merge meta data. |
So the answer to 3 is three seperate commits without any links to a common diff |
Rom, I was talking about the general question of what happens when one adds an additional parent mapping to a given commit. Since I presume that svn merges are semantically different compared to git's merges, we might not be able to just add a parent and expect the same outcome as one finds in svn history.
Same here. I do know what was committed in those revisions. My question was how do I tell from where the seeming merges originated. In this particular example there had not been any actual merges so it's obvious that I can't find any hints to their source. But again, these questions are about general thoughts. I'm wondering which of the seeming merges I come across I really need to (should) add. See revisions 19046, 19047 and 23630 for a similar case as the example above. I also can't find a merge source for the latter two, so I assume they are regular commits as well. Also the following question comes to mind: should we be adding those parents, even in cases like two examples? We could be improving history if my full-merge presumption is wrong (I doubt it)... Needs to be tested... |
By the way: did BOINC use svn 1.5 or above? I couldn't find any |
Here's an example for the problem I see, related to my first question: in revision 16066 David merges a feature Frank committed in his workspace at revision 16065. However, I presume adding a parent in git will also include the changes of 16064 in the merge as it's the parent of 16065 and not yet merged since the last merge (parent mapping) in 16055. Such a merge would change history... In this case it's indeed ok to include 16064 as it fixes a regression introduced by the merge in 16061. But nevertheless, history will be altered as the regression was fixed eventually in trunk in 16086. There could be other examples where the difference in merge semantics will cause actual code changes, not "just" history changes (which are already bad enough). Update: I just verified, using boinc-v2.git, that my presumptions (see question 1) are indeed correct. History is and will be changed (content might be changed, see above!) by such merges. |
BOINC does at present use SVN 1.5 or better. I think we started out at an earlier version. You'll probably find svn: mergeinfo stuff related to my commits in the 6.12 and 7.0a branches. |
Yet another observation: these parent mappings seem to create only "virtual merges". They seem to add the parent-child relation only, without changing the merges themselves. Example: in revision 15679 David merges Adam's pymw feature. By adding a parent relation to 15660 Nicolas established the merge from Adam's workspace into trunk. However, Adam's workspace also included an unrelated commit in revision in 13661 that would also be merged, in fact, it is indeed part of the history (commit graph) of boinc-v2.git. But, it's content isn't reflected by the "merge" result in 15679. It simply doesn't contain 13661's change, despite now being part of the history! Well, part of the history that is: neither Bottom line: parent mapping doesn't modify anything but just creates virtual (!) branch relations. While this might be helpful to follow history it might also create some confusion as one might look at what seem to be an actual (git) merge, but which isn't. Not sure what to make of this... This is important as it would leave question 1 to be answered with: "nothing". It would also mean that the parents I suggest in my first comment would be just fine and we wouldn't have to worry about actual sources or accidental merges of unwanted commits. Hm, this would also explain why Nicolas added some inaccurate mappings without being actually concerned... Can someone, ideally Nicolas, confirm my conclusion(s)? |
There are certainly many more parent mappings to added. I'll leave it you to identify and add them if needed. |
As far as I know this has to meet your standards before you sign-off on it, is it up to your standards? |
Why does it have to meet my standards? It's your code and your migration, thus it should meet your standards. |
It seems there are a number merges missing. This is what I found so far:
Related: 555eb12#commitcomment-2399501
To be continued...
The text was updated successfully, but these errors were encountered: