summaryrefslogtreecommitdiff
path: root/lib/gitlab/conflict
Commit message (Collapse)AuthorAgeFilesLines
* Handle non-UTF-8 conflicts gracefully21247-mergerequestscontroller-conflicts-may-fail-with-iso-8859-dataSean McGivern2016-08-251-0/+9
| | | | | | | These can't be resolved in the UI because if they aren't in a UTF-8 compatible encoding, they can't be rendered as JSON. Even if they could, we would be implicitly changing the file encoding anyway, which seems like a bad idea.
* Fix bug where conflict view would have one too many context sectionsDouwe Maan2016-08-121-2/+4
|
* Find match line headers by backtrackingSean McGivern2016-08-121-11/+24
| | | | | This is more efficient for large files than performing a regex match on every single line.
* Add more tests for conflictsSean McGivern2016-08-121-1/+1
|
* Move resolving code to ResolveServiceSean McGivern2016-08-122-29/+0
|
* Clarify Conflict::File#sections methodSean McGivern2016-08-121-3/+19
|
* Don't allow resolving invalid conflictsSean McGivern2016-08-121-2/+2
| | | | | | | | | | An MR can only be resolved in the UI if: - It has conflicts. - It has valid diff_refs (in other words, it supports new diff notes). - It has no conflicts with one side missing. - It has no conflicts in binary files. - It has no conflicts in files too large to display. - It has no conflicts containing invalid conflict markers.
* Add blob_icon to conflict file JSONSean McGivern2016-08-121-2/+4
|
* Add blob_path to conflict file JSONSean McGivern2016-08-122-4/+10
|
* Use same resolution format on FE and BESean McGivern2016-08-122-4/+5
|
* Fix specsSean McGivern2016-08-123-15/+10
| | | | | | | | - Add match line header to expected result for `File#sections`. - Lowercase CSS colours. - Remove unused `diff_refs` keyword argument. - Rename `parent` -> `parent_file`, to be more explicit. - Skip an iteration when highlighting.
* Fix match line headers at start / end of fileSean McGivern2016-08-121-16/+33
|
* Handle case where one side deleted the fileSean McGivern2016-08-121-3/+5
|
* Highlight files based on merged fileSean McGivern2016-08-121-2/+5
|
* Remove unneeded raiseSean McGivern2016-08-121-3/+0
|
* Add match line headersSean McGivern2016-08-121-1/+8
|
* Raise errors for large and binary filesSean McGivern2016-08-121-1/+5
|
* Handle conflict resolution errors in controllerSean McGivern2016-08-122-7/+10
|
* Fix MR conflict resolution commitsSean McGivern2016-08-121-1/+1
|
* Auto-highlight conflict when rich_text is calledSean McGivern2016-08-122-11/+8
|
* Fix merge conflict reading for new diffsSean McGivern2016-08-121-1/+1
|
* Allow resolving conflicts in MR controllerSean McGivern2016-08-122-1/+63
|
* Handle multiple merge conflict files in collectionSean McGivern2016-08-123-14/+71
|
* Add backend for merge conflicts readingSean McGivern2016-08-122-0/+150