comparison hgext/convert/convcmd.py @ 7968:43b70a964e0d

convert: handle comments starting with '#' in authormap files
author Marti Raudsepp <marti@juffo.org>
date Sat, 04 Apr 2009 18:04:38 +0200
parents 62154415821f
children 46293a0c7e9f
comparison
equal deleted inserted replaced
7967:c03f42159afa 7968:43b70a964e0d
196 196
197 def readauthormap(self, authorfile): 197 def readauthormap(self, authorfile):
198 afile = open(authorfile, 'r') 198 afile = open(authorfile, 'r')
199 for line in afile: 199 for line in afile:
200 200
201 if line.strip() == '': 201 line = line.strip()
202 if not line or line.startswith('#'):
202 continue 203 continue
203 204
204 try: 205 try:
205 srcauthor, dstauthor = line.split('=', 1) 206 srcauthor, dstauthor = line.split('=', 1)
206 except ValueError: 207 except ValueError: