-
Notifications
You must be signed in to change notification settings - Fork 212
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
Support rebasing local changes on top of master/incoming changes #6662
base: master
Are you sure you want to change the base?
Conversation
…ffanK/pull-merge-rebase
…ffanK/pull-merge-rebase
…ffanK/pull-merge-rebase
…ffanK/pull-merge-rebase
…ffanK/pull-merge-rebase
…twinjs-core into affanK/pull-merge-rebase
|
||
assert.strictEqual(1, getCount(briefcases[3], PhysicalModel.classFullName)); | ||
assertTxnStates(txns[3], false, false, false, false, true, "briefcase 3 after pull"); | ||
// TODO: "redo possible" should be false, if we try to reinstate, it will crash! |
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 currently a bug it seems. "IsRedoPossible" should be false (at least for merge.
Calling ReinstateTxn() after this crashes node.
// [3] model gets unsaved changes | ||
IModelTestUtils.createAndInsertPhysicalPartitionAndModel(briefcases[3], IModelTestUtils.getUniqueModelCode(briefcases[3], "localPhysicalModel"), false); | ||
assertTxnStates(txns[3], true, true, false, false, false, "briefcase 3 with unsaved local changes"); | ||
await assertThrowsAsync(async () => briefcases[3].pullChanges(), "cannot processed due to unsaved changes."); |
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.
should be "cannot be processed due to unsaved changes"
I did not find the string both in itwin and imodel-native....
_onRebaseBeginLocalTxn()
onRebaseEndLocalTxn()
imodel-native:iTwin/imodel-native#737