Commits

Markus Zapke-Gründemann committed d8e8e24

Updated to work with all Mercurial versions.

  • Participants
  • Parent commits 0d300f7

Comments (0)

Files changed (1)

File hgext/config.py

 import re
 import os.path
 
-from mercurial import scmutil
+from mercurial import util
+if util.version() >= '1.9':
+    from mercurial.scmutil import rcpath
+else:
+    rcpath = util.rcpath
 
 
 def local_rc(repo):
 
 
 def get_configs(ui, repo):
-    allconfigs = scmutil.rcpath()
+    allconfigs = rcpath()
     local_config = local_rc(repo)
     allconfigs += [local_config]