# HG changeset patch # User Kevin Bullock # Date 1508873195 18000 # Node ID ddae0045de4e704552925109c824392dbedd9c76 # Parent 78dc28eb4245b8e492fa63702a10a8d068eb6143 config: register git.authors diff --git a/hggit/compat.py b/hggit/compat.py --- a/hggit/compat.py +++ b/hggit/compat.py @@ -64,6 +64,7 @@ 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 --- a/hggit/git_handler.py +++ b/hggit/git_handler.py @@ -158,8 +158,9 @@ 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('#'):