Mercurial > hgsubversion
comparison hgsubversion/maps.py @ 1386:8bd40916106f
maps: remove unneeded __init__ code from author map
| author | Sean Farley <sean.michael.farley@gmail.com> |
|---|---|
| date | Mon, 24 Mar 2014 11:20:59 -0500 |
| parents | 9139d9295a36 |
| children | b9975bc80bb6 |
comparison
equal
deleted
inserted
replaced
| 1385:9139d9295a36 | 1386:8bd40916106f |
|---|---|
| 89 The ui argument is used to print diagnostic messages. | 89 The ui argument is used to print diagnostic messages. |
| 90 | 90 |
| 91 The path argument is the location of the backing store, | 91 The path argument is the location of the backing store, |
| 92 typically .hg/svn/authors. | 92 typically .hg/svn/authors. |
| 93 ''' | 93 ''' |
| 94 self.meta = meta | |
| 95 self.defaulthost = '' | 94 self.defaulthost = '' |
| 96 if meta.defaulthost: | 95 if meta.defaulthost: |
| 97 self.defaulthost = '@%s' % meta.defaulthost.lstrip('@') | 96 self.defaulthost = '@%s' % meta.defaulthost.lstrip('@') |
| 98 | 97 |
| 99 self.super = super(AuthorMap, self) | 98 super(AuthorMap, self).__init__(meta) |
| 100 self.super.__init__() | |
| 101 self.load(self.meta.authormap_file) | |
| 102 | |
| 103 # append authors specified from the commandline | |
| 104 clmap = util.configpath(self.meta.ui, 'authormap') | |
| 105 if clmap: | |
| 106 self.load(clmap) | |
| 107 | 99 |
| 108 def load(self, path): | 100 def load(self, path): |
| 109 ''' Load mappings from a file at the specified path. ''' | 101 ''' Load mappings from a file at the specified path. ''' |
| 110 | 102 |
| 111 path = os.path.expandvars(path) | 103 path = os.path.expandvars(path) |
