highlight: fixes garbled text in non-UTF-8 environment

Martin Geisler mg at lazybytes.net
Sat Sep 5 09:19:48 CDT 2009


Yuya Nishihara <youjah at gmail.com> writes:

> it seems hgwebdir never call extsetup().

Yes, extensions are not loaded explicitly when hgweb is run, they are
only loaded indirectly:

  hgwebdir_mod use hg.repository
    hg.repository create a localrepository
      localrepository calls extensions.loadall
        extensions.loadall runs uisetup
    hg.repository runs reposetup

So nothing loads extsetup... I'm not sure how we can ensure extsetup is
called between uisetup and reposetup, it's normally done in dispatch,
but this code path circumvents this entirely.

-- 
Martin Geisler

VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://selenic.com/pipermail/mercurial-devel/attachments/20090905/876e4289/attachment.pgp 


More information about the Mercurial-devel mailing list