#!/bin/sh # Script showing one way to reproduce this kind of error: # # subversion/libsvn_client/commit.c:862: (apr_err=160028) # svn: Commit failed (details follow): # subversion/libsvn_repos/commit.c:127: (apr_err=160028) # svn: Out of date: 'b.txt' in transaction '1-1' SVN=${HOME}/src/subversion/subversion/svn/svn SVNADMIN=${HOME}/src/subversion/subversion/svnadmin/svnadmin URL=file:///`pwd`/repos OTHER_URL=file:///`pwd`/other_repos rm -rf repos other_repos was_orig_repos wc other_wc ${SVNADMIN} create repos ${SVNADMIN} create other_repos ${SVN} co ${URL}/ wc ${SVN} co ${OTHER_URL}/ other_wc cd wc echo "Add file a.txt in wc." > a.txt ${SVN} add a.txt ${SVN} ci -m "add a.txt" ${SVN} up cd .. cd other_wc echo "Add file b.txt in other_wc." > b.txt ${SVN} add b.txt ${SVN} ci -m "add b.txt" ${SVN} up cd .. # Sneakily change the repositories' names. mv repos was_orig_repos mv other_repos repos cd wc ${SVN} merge -r0:1 ${URL}/ . ${SVN} ci -m "this commit should get an error"