[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

merge problem. impossible to revert deleted file

From: Gunnar Dalsnes <hardon_at_online.no>
Date: Wed, 09 Nov 2011 21:13:13 +0100

Hi,

Think I found a problem with svn 1.7.1 on Windows, where after a merge
and a tree conflict (annoying, since both dirs have same name), I ended
up with a file with status deleted (for unknown reason), and it seems
impossible to revert (undelete) this file.

I made a batch script where I believe I managed to reproduce the problem:

---start script---

REM change this to the dir you are running the script from
set wd=c:/temp/test

svnadmin create repo

svn mkdir file:///%wd%/repo/trunk -m test

svn co file:///%wd%/repo/trunk trunk1
svn co file:///%wd%/repo/trunk trunk2

svn copy trunk1 file:///%wd%/repo/branch -m branch

svn co file:///%wd%/repo/branch branch

pushd branch
md dir1
pushd dir1
echo > file2.txt
popd
svn add *
svn commit -m test

popd

pushd trunk1
svn update
md dir1
pushd dir1
echo > file1.txt
popd
svn add *
svn commit -m test

popd

pushd trunk2

svn merge file:///%wd%/repo/branch_at_4

REM tree conflict

svn resolve --accept=working dir1

svn up

REM Updating '.':
REM A dir1\file1.txt

REM It says dir1\file1.txt is added, but it's nowhere to be seen
dir dir1
svn status dir1

svn resolve --accept=working dir1
svn revert dir1\file1.txt

REM Nope, file is still deleted. Impossible to undelete it.
popd

popd

---end script---

Another small issue:
svn merge don't seem to like backslash in file urls:
C:\temp\test\trunk2>svn merge file:///C:\temp\test\trunk2/repo/branch_at_4
svn: E180001: Unable to connect to a repository at URL
'file:///C:%5Ctemp%5Ctest
%5Ctrunk2/repo/branch'
svn: E180001: Unable to open an ra_local session to URL
svn: E180001: Unable to open repository
'file:///C:%5Ctemp%5Ctest%5Ctrunk2/repo/
branch'

Otoh, svn co and svn mkdir etc. seems to work with backslash in file urls.

thanks,
Gunnar Dalsnes
Received on 2011-11-09 21:13:51 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.