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

svn:executable can corrupt binaries (revert fixes it)

From: Craig Peterein <craig_at_peterein.org>
Date: 2002-10-06 21:57:17 CEST

This is using svn built from 3312. All tests pass over ra_local.

Changing svn:executable in one wc and updating in another wc results in a
locally modified (and corrupted) binary. The text base is ok, so a revert
works fine.

Craig

#!/bin/bash
export REPO=file://`pwd`/repo
svnadmin create repo
svn mkdir $REPO/trunk -m ""
svn co $REPO/trunk wc
cp /bin/bash wc
# 'svn add' will automatically set svn:executable, but the result below doesn't
# matter if you do a 'chmod -x wc/bash' first
svn add wc/bash
svn ci wc -m "commit in wc"
svn co $REPO/trunk wc2
svn ps svn:executable "anything, really" wc2/bash
svn ci wc2 -m "change svn:executable"
svn up wc2
md5sum wc*/bash /bin/bash
# all the same
svn up wc
md5sum wc*/bash /bin/bash
# wc/bash is corrupt
svn st wc
# wc/bash is locally modified
svn revert wc/bash
md5sum wc*/bash /bin/bash
# all ok now

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Oct 6 21:58:02 2002

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.