Andrei Alexandrescu, el 8 de agosto a las 14:44 me escribiste: > On 08/08/2010 12:28 PM, Nick Sabalausky wrote: > >"Andrei Alexandrescu"<[email protected]> wrote in message > >news:[email protected]... > >> > >>Very nice! You may as well guard the write with an if (result != fileStr). > >>With control source etc. in the mix it's always polite to not touch files > >>unless you are actually modifying them. > >> > > > >I'm fairly sure SVN doesn't commit touched files unless there are actual > >changes. (Or maybe it's TortoiseSVN that adds that intelligence?) > > It doesn't, but it still shows them as changed etc.
Nope, not really: /tmp$ svnadmin create x /tmp$ svn co file:///tmp/x xwc Revisión obtenida: 0 /tmp$ cd xwc/ /tmp/xwc$ echo hello > hello /tmp/xwc$ svn add hello A hello /tmp/xwc$ svn commit -m 'test' Añadiendo hello Transmitiendo contenido de archivos . Commit de la revisión 1. /tmp/xwc$ touch hello /tmp/xwc$ svn status /tmp/xwc$ echo changed > hello /tmp/xwc$ svn status M hello /tmp/xwc$ (sorry about the Spanish messages, I saw them after copying the test and I'm too lazy to repeat them changing the LANG environment variable :) You might want to set the mtime to the same as the original file for build purposes though (you know you're changing the file in a way it doesn't really change its semantics, so you might want to avoid unnecessary recompilation). -- Leandro Lucarella (AKA luca) http://llucax.com.ar/ ---------------------------------------------------------------------- GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05) ---------------------------------------------------------------------- ... los cuales son susceptibles a una creciente variedad de ataques previsibles, tales como desbordamiento del tampón, falsificación de parámetros, ... -- Stealth - ISS LLC - Seguridad de IT
