# HG changeset patch # User Sean Farley # Date 1395678046 18000 # Node ID 87837284917582689a552de2a7bc4dede3dbfe75 # Parent a5641006e33849a36ef64c0f2e6a58cf98267803 maps: use meta.caseignoreauthors 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.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)