[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Q: How to ignore minor changes in text files?

From: Konstantin Kolinko <knst.kolinko_at_gmail.com>
Date: Wed, 23 Dec 2009 18:23:15 +0300

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 16:23:51 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.