From febc5953e10f275992c4e58f4e909ad3f52618c5 Mon Sep 17 00:00:00 2001 From: Kevin Bullock Date: Tue, 24 Oct 2017 14:26:35 -0500 Subject: [PATCH] config: register git.authors --- hggit/compat.py | 1 + hggit/git_handler.py | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hggit/compat.py b/hggit/compat.py index 5d407a415f..c927e94a5b 100644 --- a/hggit/compat.py +++ b/hggit/compat.py @@ -64,6 +64,7 @@ def read_pkt_refs(proto): CONFIG_DEFAULTS = { 'git': { + 'authors': None, 'blockdotgit': True, 'branch_bookmark_suffix': None, 'intree': None, diff --git a/hggit/git_handler.py b/hggit/git_handler.py index 92bd9db273..1f1fa550f1 100644 --- a/hggit/git_handler.py +++ b/hggit/git_handler.py @@ -158,8 +158,9 @@ class GitHandler(object): def init_author_file(self): self.author_map = {} - if self.ui.config('git', 'authors'): - with open(self.repo.wvfs.join(self.ui.config('git', 'authors'))) as f: + authors_path = compat.config(self.ui, 'string', 'git', 'authors') + if authors_path: + with open(self.repo.wvfs.join(authors_path)) as f: for line in f: line = line.strip() if not line or line.startswith('#'):