diff hgext/largefiles/overrides.py @ 16449:874a680a3e23

largefiles: hide .hglf/ prefix for largefiles in hgweb This makes the manifest view in hgweb match what you see in the working copy and what you get when you download an archive in hgweb.
author Martin Geisler <mg@lazybytes.net>
date Sun, 15 Apr 2012 16:05:57 +0200
parents 290850e7aa43
children 12dabc22de77
line wrap: on
line diff
--- a/hgext/largefiles/overrides.py	Sun Apr 15 16:05:53 2012 +0200
+++ b/hgext/largefiles/overrides.py	Sun Apr 15 16:05:57 2012 +0200
@@ -172,6 +172,11 @@
     finally:
         wlock.release()
 
+# For overriding mercurial.hgweb.webcommands so that largefiles will
+# appear at their right place in the manifests.
+def decodepath(orig, path):
+    return lfutil.splitstandin(path) or path
+
 # -- Wrappers: modify existing commands --------------------------------
 
 # Add works by going through the files that the user wanted to add and