bump testedwith version
adapt to stringutil.binary() of hg 4.6
make repo.filectx() pass arbitrary arguments to super class

Fixes compatibility with Mercurial 4.6, daef13da66fe.
fix typo in testedwith version
silence warning of unregistered config item
take binary data as text if utf-16/32 in candidates
use modern except clause
use modern import style
wrap changectx._parents and workingctx._parents

Otherwise, ctx.p1() wouldn't be wrapped correctly. This was spotted by the
change at hg 93bcc73df8d5.
bump testedwith version
wrap filectx.parents() so that annotated revisions should be correct
wrap filectx.filectx() appropriately

It's used in "hg annotate" for example.
avoid wrapping context object more than once

Since hg 00140039bd8f, repo[changeid] can accept context object and return it
as-is.
update testedwith list
add testedwith and buglink attributes
don't load from tortoisehg because it has no effect
use unfilteredpropertycache where approperiate for hg 2.5
mark enabled flag as propertycache because it shouldn't change
move wraprepo() to reposetup for compatibility with repoview

As of hg 5db16424142c, wrapping proxycls of repoview causes infinite recursion
of __getattr__().
ability to enable textful after wrapping repo
Next