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

Re: svn "blind" to modifications

From: David Chapman <dcchapman_at_earthlink.net>
Date: Tue, 16 Sep 2008 11:17:25 -0700

Dominique Laigle wrote:
> Hi there,
> Before sending a bug, I would like to make sure whether this issue has
> been already encountered.
> When I make a bulk change on sources using GNU sed and its "in place"
> change switch, like the following:
> $find src/ -type f -exec sed -i 's/const char/unsigned const char/g' {}\;
> ...then a following "svn ci" has simply no effect. Performing a "svn
> co" tells me I am still at the current version (nothing is downloaded:
> the modified files stay as is).
> Any idea ?
> "svn --version" on the client AND the server says the following:
> svn, version 1.4.6 (r28521)
> compiled Mar 11 2008, 08:26:35
> Copyright (C) 2000-2007 CollabNet.
> Subversion is open source software, see http://subversion.tigris.org/
> This product includes software developed by CollabNet
> (http://www.Collab.Net/).
> The following repository access (RA) modules are available:
> * ra_dav : Module for accessing a repository via WebDAV (DeltaV) protocol.
> - handles 'http' scheme
> - handles 'https' scheme
> * ra_svn : Module for accessing a repository using the svn network
> protocol.
> - handles 'svn' scheme
> * ra_local : Module for accessing a repository on local disk.
> - handles 'file' scheme
> - Dominique

Subversion stores "golden copies" of each file in a subdirectory ".svn"
within each directory of your working copy. Thus your find command has
modified the golden copy as well. Keep it out of directories named
".svn" using the "prune" option to find:

find src/ -name .svn -prune -o -type f -exec sed -i 's/const
char/unsigned const char/g' {}\;

    David Chapman         dcchapman_at_earthlink.net
    Chapman Consulting -- San Jose, CA
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-09-16 20:17:43 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.