changeset 1066:78dc28eb4245

config: register git.branch_bookmark_suffix
author Kevin Bullock <kbullock@ringworld.org>
date Tue, 24 Oct 2017 14:22:19 -0500
parents d37336a87b70
children ddae0045de4e
files hggit/compat.py hggit/git_handler.py
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hggit/compat.py
+++ b/hggit/compat.py
@@ -65,6 +65,7 @@
 CONFIG_DEFAULTS = {
     'git': {
         'blockdotgit': True,
+        'branch_bookmark_suffix': None,
         'intree': None,
     },
 }
--- a/hggit/git_handler.py
+++ b/hggit/git_handler.py
@@ -114,8 +114,8 @@
 
         self.paths = ui.configitems('paths')
 
-        self.branch_bookmark_suffix = ui.config('git',
-                                                'branch_bookmark_suffix')
+        self.branch_bookmark_suffix = compat.config(
+            ui, 'string', 'git', 'branch_bookmark_suffix')
 
         self._map_git_real = None
         self._map_hg_real = None