Author: Vernon Tang <vt@foilhead.net>
Description: Support installation of help topics in FHS.
Forwarded: not-needed

--- a/mercurial/help.py
+++ b/mercurial/help.py
@@ -134,9 +134,11 @@ def loaddoc(topic):
             module = __file__
         base = os.path.dirname(module)
 
+        docdir = '/usr/share/mercurial/help'
         for dir in ('.', '..'):
-            docdir = os.path.join(base, dir, 'help')
-            if os.path.isdir(docdir):
+            tmpdocdir = os.path.join(base, dir, 'help')
+            if os.path.isdir(tmpdocdir):
+                docdir = tmpdocdir
                 break
 
         path = os.path.join(docdir, topic + ".txt")
