You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Dominique Laigle <dl...@gmail.com> on 2008/09/16 13:04:39 UTC

svn "blind" to modifications

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

Re: svn "blind" to modifications

Posted by David Chapman <dc...@earthlink.net>.
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@earthlink.net
    Chapman Consulting -- San Jose, CA


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org