Mercurial > hgsubversion
comparison hgsubversion/maps.py @ 360:27e9fea5d114
Author maps: strip comments.
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Thu, 28 May 2009 09:44:47 +0200 |
parents | e74321f6f8a1 |
children | f137231f9d30 |
comparison
equal
deleted
inserted
replaced
359:e74321f6f8a1 | 360:27e9fea5d114 |
---|---|
35 return | 35 return |
36 self.ui.note('reading authormap from %s\n' % path) | 36 self.ui.note('reading authormap from %s\n' % path) |
37 f = open(path, 'r') | 37 f = open(path, 'r') |
38 for number, line in enumerate(f): | 38 for number, line in enumerate(f): |
39 | 39 |
40 line = line.split('#')[0] | |
40 if not line.strip(): | 41 if not line.strip(): |
41 continue | 42 continue |
42 | 43 |
43 try: | 44 try: |
44 src, dst = line.split('=', 1) | 45 src, dst = line.split('=', 1) |