hgext/highlight/__init__.py
changeset 26295 e7cb19b1ef2b
parent 26249 3166bcc0c538
child 26678 613d850cce53
--- 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):