##// END OF EJS Templates
convert: tolerate trailing spaces on map files...
Wagner Bruna -
r15608:63ff8fe3 stable
parent child Browse files
Show More
@@ -384,7 +384,7 b' class mapfile(dict):'
384 384 return
385 385 for i, line in enumerate(fp):
386 386 try:
387 key, value = line.splitlines()[0].rsplit(' ', 1)
387 key, value = line.splitlines()[0].rstrip().rsplit(' ', 1)
388 388 except ValueError:
389 389 raise util.Abort(
390 390 _('syntax error in %s(%d): key/value pair expected')
@@ -49,7 +49,7 b' test invalid splicemap'
49 49 splice repo2 on repo1
50 50
51 51 $ cat > splicemap <<EOF
52 > $CHILDID1 $PARENTID1
52 > $CHILDID1 $PARENTID1
53 53 > $CHILDID2 $PARENTID2,$CHILDID1
54 54 > EOF
55 55 $ hg clone repo1 target1
General Comments 0
You need to be logged in to leave comments. Login now