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

Re: explaining syntax-check hook-script

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Tue, 8 Sep 2009 15:41:55 +0300 (Jerusalem Daylight Time)

Marc Lustig wrote on Tue, 8 Sep 2009 at 00:05 -0700:
> This is my understanding of the process:
> when checking in a file, Subversion recognizes the format that the fle is
> encoded and saves this information somewhere. Then the file is transformed
> into UTF-8 and placed in the repo.
> When the file is checked out again, the file is re-encoded in the original
> format.
> Is that correct?

As far as I know:

No. The *only* transformations done on files are line-ending normalization
(if svn:eol-style is set) and $Keyword$ expansion (if svn:keywords is set).
We do not recode files, not even if 'svn:mime-type' is set.

But I suppose we do recode log messages at commit time if log-encoding
is set in your config file.

> Another question: is there any requirement of Subversion regarding the
> encoding of files when they are checked in?

Subversion treats files as opaque binary strings, unless you tell it
otherwise (see above).


To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-09-08 14:42:52 CEST

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