* Richard Lowe <[EMAIL PROTECTED]> [20061025 16:17]:
> Thomas Arendsen Hein wrote:
> >* Richard Lowe <[EMAIL PROTECTED]> [20061025 14:36]:
> >>Bill Shannon wrote:
> >>>>Rich tried this and I futzed with it a little bit; we tried using
> >>>>encode/decode filters - but I believe it would slow down pulls/clones
> >>>>incredibly as it would have to transform each and every single file on a
> >>>>pull/clone/push.  I think Rich expressed this same concern.
> >>>If you use the RCS keyword approach I think you only pay when you
> >>>do a commit.
> >On commit (low overhead) and on update/checkout, but definitely not
> >on pull/clone/push.
> 
> I was under the impression the update hook ran when populating the workspace 
> during clone, also.

Sorry, of course (unless you use 'clone -U').

> >The decode/encode filters should be the right place for this, though
> >I don't know for sure if Mercurial provides them with all needed
> >information yet (i.e. the current changeset hash).
> 
> A quick glance suggests we don't even get the filename being filtered, just a 
> raw input stream.

This might really be the case, but I'd have to look at that, too.

> >You can circumvent performance problems by using a python extension
> >instead of shell skripts with decode/encode. Look at
> >hgext/win32text.py and contrib/win32/mercurial.ini for examples.
> 
> I see in-process python hooks, but not filters.  Are these more recent than 
> 0.9.1 or am I missing 
> something?

Yes, in-process python, but they are really encode/decode filters.

> >Currently decode/encode has the problem that you can only use one
> >filter and not combine e.g. CR/LF conversion, gzip compressed
> >working files and keyword expansion without creating a
> >one-size-fits-all filter.
> 
> The other issue in this area would be getting the hook/filter to each and 
> every child workspace, 
> since such things don't propagate on clone.

Currently we're evaluating a way to specify marking certain hgrc
settings as trusted. Maybe this can be extended in the future to
allow certain encode/decode filters to be enabled via a distributed
.hgrc file in the repository?

Thomas

-- 
Email: [EMAIL PROTECTED]
http://intevation.de/~thomas/
_______________________________________________
tools-discuss mailing list
tools-discuss@opensolaris.org

Reply via email to