##// END OF EJS Templates
dispatch: show empty filename in OSError aborts...
Mads Kiilerich -
r18227:720308f7 default
parent child Browse files
Show More
@@ -183,8 +183,8 b' def _runcatch(req):'
183 183 else:
184 184 raise
185 185 except OSError, inst:
186 if getattr(inst, "filename", None):
187 ui.warn(_("abort: %s: %s\n") % (inst.strerror, inst.filename))
186 if getattr(inst, "filename", None) is not None:
187 ui.warn(_("abort: %s: '%s'\n") % (inst.strerror, inst.filename))
188 188 else:
189 189 ui.warn(_("abort: %s\n") % inst.strerror)
190 190 except KeyboardInterrupt:
@@ -86,7 +86,7 b' attack /tmp/test'
86 86 $ hg manifest -r4
87 87 /tmp/test
88 88 $ hg update -Cr4
89 abort: *: $TESTTMP/target//tmp/test (glob)
89 abort: *: '$TESTTMP/target//tmp/test' (glob)
90 90 [255]
91 91
92 92 $ cd ..
@@ -558,7 +558,7 b' Inaccessible destination'
558 558 $ hg init b
559 559 $ cd b
560 560 $ hg clone . ../a
561 abort: Permission denied: ../a
561 abort: Permission denied: '../a'
562 562 [255]
563 563 $ cd ..
564 564 $ chmod 700 a
@@ -316,7 +316,7 b' conversion to dir without permissions sh'
316 316 $ chmod 000 bogusdir
317 317
318 318 $ hg convert a bogusdir
319 abort: Permission denied: bogusdir
319 abort: Permission denied: 'bogusdir'
320 320 [255]
321 321
322 322 user permissions should succeed
@@ -46,6 +46,12 b' Missing arg:'
46 46
47 47 $ cd "$TESTTMP"
48 48
49 OSError ... and with filename even when it is empty
50
51 $ hg -R a archive ''
52 abort: No such file or directory: ''
53 [255]
54
49 55 #if no-outer-repo
50 56
51 57 No repo:
General Comments 0
You need to be logged in to leave comments. Login now