changeset 1196:878372849175

maps: use meta.caseignoreauthors intead of accessing ui directly
author Sean Farley <sean.michael.farley@gmail.com>
date Mon, 24 Mar 2014 11:20:46 -0500
parents a5641006e338
children 1414cdafa7af
files hgsubversion/maps.py
diffstat 1 files changed, 3 insertions(+), 5 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.caseignoreauthors = self.meta.ui.configbool('hgsubversion', 'caseignoreauthors', False)
         self.defaulthost = ''
         if meta.defaulthost:
             self.defaulthost = '@%s' % meta.defaulthost.lstrip('@')
@@ -71,7 +70,7 @@ class AuthorMap(dict):
             src = src.strip()
             dst = dst.strip()
 
-            if self.caseignoreauthors:
+            if self.meta.caseignoreauthors:
                 src = src.lower()
 
             if writing:
@@ -95,10 +94,9 @@ class AuthorMap(dict):
         if author is None:
             author = '(no author)'
 
-        if self.caseignoreauthors:
+        search_author = author
+        if self.meta.caseignoreauthors:
             search_author = author.lower()
-        else:
-            search_author = author
 
         if search_author in self:
             result = self.super.__getitem__(search_author)