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

Re: Extracting files without keyword expansion

From: Nico Kadel-Garcia <nkadel_at_gmail.com>
Date: Thu, 9 Sep 2010 07:41:20 -0400

On Thu, Sep 9, 2010 at 6:41 AM, Neil Bird <neil_at_fnxweb.com> wrote:
>
>  Is there any way possible (aside from write a script to generate modified
> files) to update, checkout or otherwise fetch files from svn *without*
> having it honour the svn:keywords property (and without permanently removing
> said property)?
>
>  This is for the purposes of doing some out-of-repo difference checking. I
> have one set of files with unexpanded headers (as if they were about to
> freshly be added), and another from a repo. with expanded headers, and of
> course they all show up as different.

Our upstream developers added the "--ignore-keywords" option in the
trunk. But you can also look into using "diff" tools that can be set
to ignore selected keywords, such as "--ignore-matching-lines" for GNU
diff.

If it's going to be an ongoing issue, you might also consider
disabling keyword expansion entirely, even blocking its use in your
pre-commit scripts. Some source control systems do not support them at
all, believing that the source control system should not *touch* the
actual contents of the file. (git, for example, does not support
keywords.) It does have its uses for version tracking in exported
files, but it can be an issue as well as you are seeing.
Received on 2010-09-09 13:42:15 CEST

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.