Changeset: de18e33e3fb6 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=de18e33e3fb6
Modified Files:
testing/Mfilter.py
Branch: Jun2016
Log Message:
Normalize generated label names in "# name" table headers.
diffs (23 lines):
diff --git a/testing/Mfilter.py b/testing/Mfilter.py
--- a/testing/Mfilter.py
+++ b/testing/Mfilter.py
@@ -112,6 +112,7 @@ norm_out = (
# match "table_name" SQL table header line to normalize "(sys)?.L[0-9]*" to
"(sys)?."
table_name = re.compile(r'^%.*[\t ](|sys)\.L[0-9]*[, ].*# table_name$')
+name = re.compile(r'^%.*[\t ]L[0-9]*[, ].*# name$')
attrre = re.compile(r'\b[-:a-zA-Z_0-9]+\s*=\s*(?:\'[^\']*\'|"[^"]*")')
elemre = re.compile(r'<[-:a-zA-Z_0-9]+(?P<attrs>(\s+' + attrre.pattern +
r')+)\s*/?>')
@@ -185,6 +186,11 @@ def mFilter (FILE, IGNORE) :
oline = re.sub(r'([ \t])(|sys)(\.)L[0-9]*([, ])', r'\1\2\3\4',
iline)
# keep original line for reference as comment (i.e., ignore diffs,
if any)
xline = iline.replace('%','#',1)
+ elif name.match(iline):
+ # normalize "L[0-9]*" to "L" in "name" line of SQL table header
+ oline = re.sub(r'([ \t])L[0-9]*([, ])', r'\1L\2', iline)
+ # keep original line for reference as comment (i.e., ignore diffs,
if any)
+ xline = iline.replace('%','#',1)
else:
oline = iline
if iline == "#~EndVariableOutput~#\n" or iline == "[
\"~EndVariableOutput~\"\t]\n":
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list