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

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

From: Bob Proulx <bob_at_proulx.com>
Date: 2005-08-08 10:22:35 CEST

Wesley Leggette wrote:
> One more question: I've resolved to occasionally running `find . -exec
> touch {} \;`. If this also touches everything in .svn, will I have a
> problem?

I think that would be a bad idea. If you have a fast system and are
lucky then all of the files may be in the same second of timestamp.
If you have a slow system and microsecond resolution on files in the
filesystem then you may have time skew across files. Also you will be
touching the files in the .svn directory. Generally you should never
touch those.

You could use 'find * -exec touch {} \;' to avoid traversing the .svn
directory. But I think that is bad for a different reason. Now you
will be making svn think that you have actually modified all of the
files in your working copy. For a few files that is probably okay.
But for a large number of files it would be inefficient and possibly
slow because svn would need to check every one of those files against
the pristine copies in the .svn directory.

I really think you are better off just using cp when you want to
update files in your working copy.

Bob

Received on Mon Aug 8 10:24:09 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.