# HG changeset patch # User Matt Harbison # Date 1448215521 18000 # Node ID e4f2e4f5e98d16dc0ba66b50aa3da0f0a89ecdf7 # Parent 9c75daf89450000832c82eeeea19167aece9077b test-histedit: $TESTTMP quoting fixes for Windows Without this, C:\path\to\test is converted into C:pathtotest. Since $TESTTMP appears in output, seems to work in some places without quotes, and is also used within a larger quote block (see test-rebase-collapse.t, ~line 160), I'm not sure what a check-code rule would look like (or even if it is feasible). diff -r 9c75daf89450 -r e4f2e4f5e98d tests/test-histedit-fold.t --- a/tests/test-histedit-fold.t Sat Nov 21 23:26:22 2015 -0800 +++ b/tests/test-histedit-fold.t Sun Nov 22 13:05:21 2015 -0500 @@ -524,13 +524,13 @@ 2:0e01aeef5fa8 foo1 1:578c7455730c a 0:79b99e9c8e49 b - $ cat > $TESTTMP/editor.sh < echo ran editor >> $TESTTMP/editorlog.txt - > cat \$1 >> $TESTTMP/editorlog.txt - > echo END >> $TESTTMP/editorlog.txt + $ cat > "$TESTTMP/editor.sh" < echo ran editor >> "$TESTTMP/editorlog.txt" + > cat \$1 >> "$TESTTMP/editorlog.txt" + > echo END >> "$TESTTMP/editorlog.txt" > echo merged foos > \$1 > EOF - $ HGEDITOR="sh $TESTTMP/editor.sh" hg histedit 1 --commands - 2>&1 <&1 < pick 578c7455730c 1 a > pick 0e01aeef5fa8 2 foo1 > fold b7389cc4d66e 3 foo2