# HG changeset patch # User Yuya Nishihara # Date 1442747607 -32400 # Node ID e7cb19b1ef2bd66d166bd8547ea8df83f7a11268 # Parent 1ffc61c4e32e79a09666b253a65f928a0bc16e86 highlight: remove temporary hack to overwrite repo.getcwd Now hgweb does it globally. diff -r 1ffc61c4e32e -r e7cb19b1ef2b hgext/highlight/__init__.py --- a/hgext/highlight/__init__.py Sun Sep 20 20:11:31 2015 +0900 +++ b/hgext/highlight/__init__.py Sun Sep 20 20:13:27 2015 +0900 @@ -33,10 +33,6 @@ ctx = fctx.changectx() tree = fileset.parse(expr) mctx = fileset.matchctx(ctx, subset=[fctx.path()], status=None) - repo = ctx.repo() - # To allow matching file names in the fileset in hgweb directory mode. - # See issue4568. - object.__setattr__(repo, 'getcwd', lambda: repo.root) return fctx.path() in fileset.getset(mctx, tree) def filerevision_highlight(orig, web, req, tmpl, fctx):