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
Straighten graph lanes #9028
Straighten graph lanes #9028
Conversation
Tests fail only on AppVeyor... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is partly based on #5783
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a way to unit test this?
{ | ||
++_laneCount; | ||
Validates.NotNull(_segmentLanes); | ||
RevisionGraphSegment[] segmentsToBeMoved = _segmentLanes.Where(keyValue => keyValue.Value >= fromLane).Select(keyValue => keyValue.Key).ToArray(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RevisionGraphSegment[] segmentsToBeMoved = _segmentLanes.Where(keyValue => keyValue.Value >= fromLane).Select(keyValue => keyValue.Key).ToArray(); | |
RevisionGraphSegment[] segmentsToBeMoved = _segmentLanes.Where(keyValue => keyValue.Value >= fromLane).Select(keyValue => keyValue.Key); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not an iterator of the C++ std lib, which allows the modification of values.
Without, it throws InvalidOperationException
"Collection has changed".
Yes, there is. I agree and will add tests for The algorithm for My implementation - with moving all lanes right - avoids that independent branches use the same lane as in #5782 (comment). |
db99fe5
to
b737b53
Compare
I have rebased and improved the performance. AppVeyor builds finish in normal time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't run
@msftbot merge in 3 days |
Hello @mstv! Because you've given me some instructions on how to help merge this pull request, I'll be modifying my merge approach. Here's how I understand your requirements for merging this pull request:
If this doesn't seem right to you, you can tell me to cancel these instructions and use the auto-merge policy that has been configured for this repository. Try telling me "forget everything I just told you". |
c11262f
to
ab29481
Compare
Fixes #5782
Proposed changes
List<RevisionGraphRevision>
inRevisionGraph
Screenshots
Before
After
Test methodology
Test environment(s)
✒️ I contribute this code under The Developer Certificate of Origin.