You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Dave Lawrence <dl...@ad-holdings.co.uk> on 2008/10/21 08:47:42 UTC

Diffing a moved file can fail

Please see the attached script for a demo of how diffing a moved file
can fail.  It creates two files, file1.c file2.c and moves them into
subdirectories dir1 and dir2 respectively.

The diff of file1.c fails, the diff of file2.c succeeds, seemingly it's
dependent on whether the copy-from revision predates the revision of the
copy-to directory.

Tested on WinXP SP3.  SVN 1.5.0 - symptoms also observed on latest TSVN
which uses SVN 1.5.3.

Re: Diffing a moved file can fail

Posted by Dave Lawrence <dl...@ad-holdings.co.uk>.
Dave Lawrence wrote:
> Please see the attached script for a demo of how diffing a moved file
> can fail.  It creates two files, file1.c file2.c and moves them into
> subdirectories dir1 and dir2 respectively.
> 
> The diff of file1.c fails, the diff of file2.c succeeds, seemingly it's
> dependent on whether the copy-from revision predates the revision of the
> copy-to directory.
> 
> Tested on WinXP SP3.  SVN 1.5.0 - symptoms also observed on latest TSVN
> which uses SVN 1.5.3.

Slightly improved script attached.