The problem I see with this is that I am now tightly coupled to Subversion
as my source control tool.
2009/12/23 Konstantin Kolinko <knst.kolinko_at_gmail.com>
> 2009/12/23 Julian Mitchell <jupeos_at_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.
>
Received on 2009-12-23 17:46:00 CET