-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix handling of rebase when editors change the same value (fixes #152)
When the final value (of a given row in a given column) would end up the same after two concurrent edits, geodiff would still produce conflicts, confusing users why would they appear. This commit adds handling of that case.
- Loading branch information
1 parent
e7bea82
commit 71d6815
Showing
16 changed files
with
194 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
23 changes: 23 additions & 0 deletions
23
geodiff/tests/testdata/rebase_conflict/case3a-rebased.conflicts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"geodiff": [ | ||
{ | ||
"table": "simple", | ||
"type": "conflict", | ||
"fid": "2", | ||
"changes": [ | ||
{ | ||
"column": 2, | ||
"base": "feature2", | ||
"old": "feature2B", | ||
"new": "feature2A" | ||
}, | ||
{ | ||
"column": 3, | ||
"base": 2, | ||
"old": 21, | ||
"new": 20 | ||
} | ||
] | ||
} | ||
] | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
17 changes: 17 additions & 0 deletions
17
geodiff/tests/testdata/rebase_conflict/case4a-rebased.conflicts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"geodiff": [ | ||
{ | ||
"table": "simple", | ||
"type": "conflict", | ||
"fid": "2", | ||
"changes": [ | ||
{ | ||
"column": 2, | ||
"base": "feature2", | ||
"old": "feature2B", | ||
"new": "feature2A" | ||
} | ||
] | ||
} | ||
] | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.