Patchwork [2,of,6,v2] test-export: be more aggressive about quoting ^

login
register
mail settings
Submitter Augie Fackler
Date July 12, 2016, 7:49 p.m.
Message ID <8b22851ac225ea493b20.1468352989@arthedain.pit.corp.google.com>
Download mbox | patch
Permalink /patch/15805/
State Accepted
Headers show

Comments

Augie Fackler - July 12, 2016, 7:49 p.m.
# HG changeset patch
# User Augie Fackler <augie@google.com>
# Date 1468352498 14400
#      Tue Jul 12 15:41:38 2016 -0400
# Node ID 8b22851ac225ea493b20c76edd45da96c744f1e8
# Parent  31f958c411e7040bb71fdd52682004f518badab3
test-export: be more aggressive about quoting ^

An upcoming change to check-code will notice this isn't quoted
enough. Presumably it's been fine by luck all this time.

Patch

diff --git a/tests/test-export.t b/tests/test-export.t
--- a/tests/test-export.t
+++ b/tests/test-export.t
@@ -159,7 +159,7 @@  No filename should be printed if stdout 
 Checking if only alphanumeric characters are used in the file name (%m option):
 
   $ echo "line" >> foo
-  $ hg commit -m " !\"#$%&(,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~"
+  $ hg commit -m " !\"#$%&(,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]"'^'"_\`abcdefghijklmnopqrstuvwxyz{|}~"
   $ hg export -v -o %m.patch tip
   exporting patch:
   ____________0123456789_______ABCDEFGHIJKLMNOPQRSTUVWXYZ______abcdefghijklmnopqrstuvwxyz____.patch