# HG changeset patch # User Sean Farley # Date 1395678046 18000 # Node ID a5641006e33849a36ef64c0f2e6a58cf98267803 # Parent 49791c40a8a56243f68a7a76df5a5e782f2040ba maps: use meta.defaultauthors intead of accessing ui directly diff --git a/hgsubversion/maps.py b/hgsubversion/maps.py --- a/hgsubversion/maps.py +++ b/hgsubversion/maps.py @@ -28,7 +28,6 @@ class AuthorMap(dict): typically .hg/svn/authors. ''' self.meta = meta - self.use_defaultauthors = self.meta.ui.configbool('hgsubversion', 'defaultauthors', True) self.caseignoreauthors = self.meta.ui.configbool('hgsubversion', 'caseignoreauthors', False) self.defaulthost = '' if meta.defaulthost: @@ -103,7 +102,7 @@ class AuthorMap(dict): if search_author in self: result = self.super.__getitem__(search_author) - elif self.use_defaultauthors: + elif self.meta.defaultauthors: self[author] = result = '%s%s' % (author, self.defaulthost) msg = 'substituting author "%s" for default "%s"\n' self.meta.ui.debug(msg % (author, result))