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

strange behavior when dealing with copied files repos/wc diffs

From: Charles Acknin <charlesacknin_at_gmail.com>
Date: 2007-09-09 21:08:27 CEST

Here's a reproduction recipe:

[[[
% svn up
At revision 1.
% svn mkdir A/T
A A/T
% svn cp A/mu A/T/mucopy
A A/T/mucopy
% svn st
A A/T
A + A/T/mucopy
% svn ci -m ''
Adding A/T
Adding A/T/mucopy

Committed revision 2.
% svn up -r1
D A/T
Updated to revision 1.
% svn di -r2
subversion/libsvn_subr/io.c:2607: (apr_err=2)
svn: Can't open file 'A/T/.svn/text-base/mucopy.svn-base': No such
file or directory
]]]

I started some investigations and noticed the server doesn't send
A/T/mucopy txdeltas. I suppose that's fine since we don't want to
display diffs of copied stuffs. But then, the temp_file_path that's
set in libsvn_wc/diff.c(close_file) is wrong (here
A/T/.svn/text-base/mucopy.svn-base). I think it should rather be a
temp copy of A/mu to produce the behavior we expect. Before I
investigate any further (and possibly write a patch to fix the bug),
did anybody notice this behavior before? I hardly believe Subversion
has gone so long with this bug lying in the darkness.

Cheers,
Charles

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Sep 9 21:05:11 2007

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

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