2009/12/23 Julian Mitchell <jup...@gmail.com>: > The project that I am working on utilises a code generation tool. The header > of every source file includes a comment with a date\time stamp of when it > was generated. The problem is that every time the code is generated the svn > change check algorithm marks all files as having been changed even though > only a handful have actually had actual code changes. > > Is there a way to tailor the change check algorithm with, say, a regex, to > ignore certain contents of a text file e.g. comment lines? > > I have scanned the FAQs and googled to no avail. >
Use svn:keywords, and let svn to generate the timestamp for you. $Id $ keyword (UTC time, not localized) or $Date $ keyword (local time, and localized month/day of week names, unless you truncate it) If you commit immediately after generation, the timestamp generated by svn will be not so different from the one generated by your tool, and only modified files will be committed.