You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by st...@atomic9.net on 2006/03/13 15:17:25 UTC

Post-Check Out Stealth Hook ?

?

Using TortoiseSvn on Win32 (not that it matters, I think).

There are explicit filesystem paths set up in several .config files in the
repository. The paths are set to run on a development server - just export
from the repository and copy to the server and I'm done. However, the paths
are different for each developer that actually works on the files. 

After a developer checks out the files, he does a global search-replace
occurs to set the .config files for the local system environment. However,
this marks the files "changed", so when a merge occurs, the developer
desktop-specific stuff ends up back in the tree. A bad thing. They end up
having to re-set the paths back (when they remember) before check-in.

Is there a post-checkout-hook for the client that could modify the files "by
stealth" so those changes could be applied without affecting SVN? I'm not
worried about other moodifications to the files, since there aren't any,
they only contain host-specific path information.

Thanks.

 
 


  
  --
  http://www.atomic9.net/


Re: Post-Check Out Stealth Hook ?

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Mar 13, 2006, at 16:17, stevec wrote:

> There are explicit filesystem paths set up in several .config files  
> in the repository. The paths are set to run on a development server  
> - just export from the repository and copy to the server and I'm  
> done. However, the paths are different for each developer that  
> actually works on the files.
>
> After a developer checks out the files, he does a global search- 
> replace occurs to set the .config files for the local system  
> environment. However, this marks the files "changed", so when a  
> merge occurs, the developer desktop-specific stuff ends up back in  
> the tree. A bad thing. They end up having to re-set the paths back  
> (when they remember) before check-in.
>
> Is there a post-checkout-hook for the client that could modify the  
> files "by stealth" so those changes could be applied without  
> affecting SVN? I'm not worried about other moodifications to the  
> files, since there aren't any, they only contain host-specific path  
> information.

There are no client-side hooks whatsoever in Subversion.

This is the common way this situation is handled:

http://subversion.tigris.org/faq.html#ignore-commit

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