Re: extending the blame callback
From: Julian Foad <julianfoad_at_apache.org>
Date: Fri, 18 Jan 2019 12:48:03 +0000
Stefan Kueng wrote:
Hi, Stefan. It wouldn't make sense to try to do this detection in the "blame line" callback: that is far too late. That's why we're discussing introducing a new "stream translation" callback, which would not be specific to "blame" but used for all textual operations.
There was some more discussion about it on #svn-dev , but not any good conclusions yet.
A stream translation callback could act as a stream filter, before the line splitting occurs, and could be responsible for determining how to translate both the character encoding and the keywords and EOL style. It could be free to buffer and examine as much of the file content as it wants to, before it starts to output the translated file content.
I'd be very glad to see any prototypes of such ideas.
-- - Julian  2019-01-14 Discussion of line-splitter callback ideas on #svn-dev, archived at https://colabti.org/irclogger/irclogger_log/svn-dev?date=2019-01-14#l50 and on Matrix: https://matrix.to/#/!hFVJYCuSnqoHmiVQYA:matrix.org/$15474728952387759JdjHl:matrix.org?via=matrix.org&via=foad.me.ukReceived on 2019-01-18 13:48:12 CET
This is an archived mail posted to the Subversion Dev mailing list.