comparison hgext/convert/convcmd.py @ 6184:9d13e7129423

convert: Ignore empty lines in authormap file.
author Marti Raudsepp <marti@juffo.org>
date Thu, 28 Feb 2008 17:37:56 +0200
parents 5b159ebb19cf
children c48d778d7c23
comparison
equal deleted inserted replaced
6183:0750e4ba9d3d 6184:9d13e7129423
189 ofile.close() 189 ofile.close()
190 190
191 def readauthormap(self, authorfile): 191 def readauthormap(self, authorfile):
192 afile = open(authorfile, 'r') 192 afile = open(authorfile, 'r')
193 for line in afile: 193 for line in afile:
194 if line.strip() == '':
195 continue
194 try: 196 try:
195 srcauthor = line.split('=')[0].strip() 197 srcauthor = line.split('=')[0].strip()
196 dstauthor = line.split('=')[1].strip() 198 dstauthor = line.split('=')[1].strip()
197 if srcauthor in self.authors and dstauthor != self.authors[srcauthor]: 199 if srcauthor in self.authors and dstauthor != self.authors[srcauthor]:
198 self.ui.status( 200 self.ui.status(