MR shows git diff markers
Bug #1888659 reported by
Paul Goins
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Triaged
|
Low
|
Unassigned |
Bug Description
Recently, I've noticed a few cases where Launchpad has rendered its diffs strangely.
Here is a concrete case which is rendering oddly right now:
It's showing git diff markers in the rendered diff. However, those aren't a mistake in what was pushed to git. If you click on the individual changesets in this MR, everything comes through looking sane. This issue appears to be a Launchpad-generated artifact.
Changed in launchpad: | |
status: | New → Triaged |
importance: | Undecided → Low |
To post a comment you must log in.
Merge proposal diffs are the result of performing a trial merge into the tip of the target branch, so they can contain conflicts if the source and target branches have diverged. In general the fix is for the author of the source branch to merge or rebase onto the current tip of the target branch and resolve conflicts, which they seem to have done in this case.
Here's a script that reproduces the same conflicts locally based on the merge proposal you referenced:
$ git clone lp:charm-prometheus-grok-exporter prometheus- grok-exporter' ... s-grok- exporter 8996925a7b6cdd1 fab9174ecb d8996925a7b6cdd 1fab9174ecb' . 8757289e43a4fe2 f90f8d2736 mapping. yaml dashboards/ grok-exporter- dashboard. json dashboards/ grok-exporter- dashboard. json
Cloning into 'charm-
[...]
$ cd charm-prometheu
$ git remote add -f peppepetra86 lp:~peppepetra86/charm-prometheus-grok-exporter
Updating peppepetra86
[...]
$ git checkout c9ef6f30b972b2d
Note: switching to 'c9ef6f30b972b2
$ git merge 4f406206718135b
Auto-merging files/metrics-
Auto-merging files/grafana-
CONFLICT (content): Merge conflict in files/grafana-
Automatic merge failed; fix conflicts and then commit the result.
$ git diff