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

svn status/diff false positive

From: Ivan Drobyshevskyi <drobyshevskyi_at_gmail.com>
Date: Mon, 11 Aug 2014 11:05:57 +0300

There's a strange behaviour that is reproduced for some files in our
subversion repository: `touch`ing this file(s) makes `svn diff` show
entire file as changed. Similar happens when opening-saving file in
any text editor or copying it back and forth.

$ svn status cmVectorStream.h
$ touch cmVectorStream.h
$ svn status cmVectorStream.h
M cmVectorStream.h

$ svn status cmVectorStream.h
$ cp cmVectorStream.h cmVectorStream.h.bak
$ cp cmVectorStream.h.bak cmVectorStream.h
$ svn status cmVectorStream.h
M cmVectorStream.h
$ diff cmVectorStream.h.bak cmVectorStream.h

For the vast majority of files in a repo the above doesn't happen, so
far I've only encountered two such files. Since svn shows entire file
as changed it might be related to line endings however I don't see how
touch'ing file could possibly trigger such behaviour.

I'm running Ubuntu 14.04.1, both stock subersion (1.8.8) and the one
compiled from source (1.8.9 with only --with-serf option set) expose
similar behaviour. The repository itself is hosted on Windows machine.

Should I fill in a bug report on this?
Received on 2014-08-11 16:10:09 CEST

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.