[Python-checkins] hgsubversion (pymigr): Require a space before "#" starting non-full-line comments in tagmap.
georg.brandl
python-checkins at python.org
Thu Feb 24 20:04:54 CET 2011
georg.brandl pushed 8f3cd69dc34d to hgsubversion:
http://hg.python.org/hgsubversion/rev/8f3cd69dc34d
changeset: 790:8f3cd69dc34d
branch: pymigr
tag: tip
user: Georg Brandl <georg at python.org>
date: Thu Feb 24 20:04:08 2011 +0100
summary:
Require a space before "#" starting non-full-line comments in tagmap.
files:
hgsubversion/maps.py
diff --git a/hgsubversion/maps.py b/hgsubversion/maps.py
--- a/hgsubversion/maps.py
+++ b/hgsubversion/maps.py
@@ -392,7 +392,9 @@
if writing:
writing.write(line)
- line = line.split('#')[0]
+ if line.startswith('#'):
+ continue
+ line = line.split(' #')[0]
if not line.strip():
continue
--
Repository URL: http://hg.python.org/hgsubversion
More information about the Python-checkins
mailing list