changeset 26295:e7cb19b1ef2b

highlight: remove temporary hack to overwrite repo.getcwd Now hgweb does it globally.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 20 Sep 2015 20:13:27 +0900
parents 1ffc61c4e32e
children 9cecbe837c94
files hgext/highlight/__init__.py
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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):