changeset 1195:a5641006e338

maps: use meta.defaultauthors intead of accessing ui directly
author Sean Farley <sean.michael.farley@gmail.com>
date Mon, 24 Mar 2014 11:20:46 -0500
parents 49791c40a8a5
children 878372849175
files hgsubversion/maps.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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))