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

Re: Sequence of SVN commits cannot be replayed

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Sun, 23 Mar 2014 11:18:52 +0000

Daniel Shahaf <d.s_at_daniel.shahaf.name> writes:

> sebb wrote on Sat, Mar 22, 2014 at 01:28:33 +0000:
>> To reproduce the problem, start as follows:
>>
>> svn co http://dist.apache.org/repos/dist/release/commons/dbcp/@4582
>>
>> Then apply the following revisions in order:
>>
>> 4583
>> 4586
>> 4588
>> 4592
>> 4593
>> 4599
>
> I can't reproduce an error with latest svn-1.8.8 from ports on FreeBSD 9.1.

I believe the problem is an svn:special file that contains a '\n'
character:

  svn cat https://dist.apache.org/repos/dist/release/commons/dbcp/binaries/HEADER.html@4588 | od -c
  0000000 l i n k . . / H E A D E R . h
  0000020 t m l \r \n
  0000026

I can reproduce on Linux:

  svnadmin create repo
  printf "link foo\n" > x.x
  svnmucc -mm -U file://`pwd`/repo put x.x f propset svn:special '*' f

Now

  svn co file://`pwd`/repo wc
  svn st wc
  M wc/f

The reason is that create_special_file_from_stream() reads just the
first line of the file to define the symlink while
svn_wc__internal_file_modified_p() compares against the whole file.

-- 
Philip Martin | Subversion Committer
WANdisco // *Non-Stop Data*
Received on 2014-03-23 12:19:32 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.