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

using 'mv' to replace files, subversion does not detect changes

From: Wesley Leggette <lists_at_kaylix.net>
Date: 2005-08-07 20:26:38 CEST

I am using subversion 1.1.3, and occasionally I'll want to replace a
file in a working copy with the contents of a file outside that
repository. To replace file A (inside working copy) with the contents of
file B (outside working copy) I issue 'mv B /path/to/checkout/A'.

The result is that subversion does not detect any change to file A.
Neither 'svn status' nor 'svn diff' show anything.

However, 'cp' seems to work fine. 'cp B /path/to/checkout/A' will
produce the desired result.

For normal source code work, I've been sticking with cp B.. rm B, but I
also use svn for tracking changes in /etc on my gentoo distribution.
There is a tool called etc-update that replaces outdated configuration
files with mv, which produces the problem mentioned above. This is where
I first noticed the problem.

Is this a bug in subversion and is there a practical work-around?

Thanks.

-- 
Wesley Leggette <lists@kaylix.net>
GPG Key:         http://www.kaylix.net/kaylix.asc or http://pgp.mit.edu
GPG Fingerprint: 9B6F 19FB 5296 5E6C 21FE  7614 2A20 5688 F848 9BDD

Received on Sun Aug 7 20:34:07 2005

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.