##// END OF EJS Templates
scmutil: use util.shellquote instead of %r...
Augie Fackler -
r33795:2cd5aba5 default
parent child Browse files
Show More
@@ -273,7 +273,7 b' def checkportable(ui, f):'
273 if abort or warn:
273 if abort or warn:
274 msg = util.checkwinfilename(f)
274 msg = util.checkwinfilename(f)
275 if msg:
275 if msg:
276 msg = "%s: %r" % (msg, f)
276 msg = "%s: %s" % (msg, util.shellquote(f))
277 if abort:
277 if abort:
278 raise error.Abort(msg)
278 raise error.Abort(msg)
279 ui.warn(_("warning: %s\n") % msg)
279 ui.warn(_("warning: %s\n") % msg)
@@ -44,14 +44,14 b' should fail'
44 abort: ui.portablefilenames value is invalid ('jump')
44 abort: ui.portablefilenames value is invalid ('jump')
45 [255]
45 [255]
46 $ hg --config ui.portablefilenames=abort add con.xml
46 $ hg --config ui.portablefilenames=abort add con.xml
47 abort: filename contains 'con', which is reserved on Windows: 'con.xml'
47 abort: filename contains 'con', which is reserved on Windows: con.xml
48 [255]
48 [255]
49 $ hg st
49 $ hg st
50 A a
50 A a
51 A b
51 A b
52 ? con.xml
52 ? con.xml
53 $ hg add con.xml
53 $ hg add con.xml
54 warning: filename contains 'con', which is reserved on Windows: 'con.xml'
54 warning: filename contains 'con', which is reserved on Windows: con.xml
55 $ hg st
55 $ hg st
56 A a
56 A a
57 A b
57 A b
@@ -15,7 +15,7 b''
15 $ hg status
15 $ hg status
16 $ hg copy a b
16 $ hg copy a b
17 $ hg --config ui.portablefilenames=abort copy a con.xml
17 $ hg --config ui.portablefilenames=abort copy a con.xml
18 abort: filename contains 'con', which is reserved on Windows: 'con.xml'
18 abort: filename contains 'con', which is reserved on Windows: con.xml
19 [255]
19 [255]
20 $ hg status
20 $ hg status
21 A b
21 A b
@@ -12,7 +12,7 b' rename a single file'
12
12
13 $ hg rename d1/d11/a1 d2/c
13 $ hg rename d1/d11/a1 d2/c
14 $ hg --config ui.portablefilenames=abort rename d1/a d1/con.xml
14 $ hg --config ui.portablefilenames=abort rename d1/a d1/con.xml
15 abort: filename contains 'con', which is reserved on Windows: 'd1/con.xml'
15 abort: filename contains 'con', which is reserved on Windows: d1/con.xml
16 [255]
16 [255]
17 $ hg sum
17 $ hg sum
18 parent: 0:9b4b6e7b2c26 tip
18 parent: 0:9b4b6e7b2c26 tip
General Comments 0
You need to be logged in to leave comments. Login now