devroom.io/content/posts/2007-05-21-merge-request-failed-on-pathtofile.md

22 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

+++
date = "2007-05-21"
title = "MERGE request failed on /path/to/file"
tags = ["General", "Features", "Subversion", "Trac"]
slug = "merge-request-failed-on-pathtofile"
description = "How to fix this annoying Subversion problem."
+++
After upgrading my Subversion server to Ubuntu Feisty, I noticed that when committing I got the following error:
<pre lang="text">svn: MERGE request failed on '/svn/repository/trunk'
svn: MERGE of '/svn/repository/trunk': 200 OK (http://svn.myserver.com)</pre>
Although the messages says that the commit failed, it has not. A simple 'svn update' will merge the changes you made to the repository to your working copy again and you're good to go.
So, what is the problem here? Are you by any chance running Trac? Did you install the post-commit hook to integrate Subversion with Trac? Right, so did I.
The problem here is that the trac-post-commit-hook script needs a few updates in order to include the proper modules. Take a look at the <a href="http://trac.edgewall.org/browser/branches/0.10-stable/contrib/trac-post-commit-hook">most recent 0.10.x version</a>.
After updating the trac-post-commit-hook script, commits worked fine again. Such an easy fix for such a nasty problem.