Commits

TK Soh  committed 3bc0754

hgtk: teach --repository about symbolic path names in .hg/hgrc

  • Participants
  • Parent commits 103724a

Comments (0)

Files changed (1)

File contrib/hgtk

         raise
 
     path = hglib.rootpath(os.getcwd())
+    if path:
+        try:
+            lui = _ui.ui(parentui=ui)
+            lui.readconfig(os.path.join(path, ".hg", "hgrc"))
+        except IOError:
+            pass
+    else:
+        lui = ui
     if options['repository']:
-        path = ui.expandpath(options['repository'])
+        path = lui.expandpath(options['repository'])
 
     if cmd not in nonrepo_commands.split():
         try: