Skip to content
This repository was archived by the owner on Feb 20, 2023. It is now read-only.

Commit 15a2b7d

Browse files
authored
Merge pull request #30 from fchapoton/patch-1
trying to tell where conflicts lie
2 parents 5bb4e04 + 4169540 commit 15a2b7d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

git_trac/releasemgr/app.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,10 @@ def merge(self, ticket_number, close=False, allow_empty=False,
129129
self._commit(commit_message, allow_empty=True)
130130
else:
131131
if 'All conflicts fixed but you are still merging.' not in status:
132+
conflicts = self.git.diff('--name-only', '--diff-filter=U')
133+
conflicts = ','.join(conflicts.splitlines())
132134
self.git.merge('--abort')
133-
raise ValueError('merge was not clean')
135+
raise ValueError('merge was not clean: conflicts in {}'.format(conflicts))
134136
self._commit(commit_message)
135137

136138
if close:

0 commit comments

Comments
 (0)