Show More
@@ -163,12 +163,12 b' def callcatch(ui, func):' | |||||
163 | else: |
|
163 | else: | |
164 | reason = _('lock held by %r') % inst.locker |
|
164 | reason = _('lock held by %r') % inst.locker | |
165 | ui.warn(_("abort: %s: %s\n") |
|
165 | ui.warn(_("abort: %s: %s\n") | |
166 |
% (inst.desc or |
|
166 | % (inst.desc or util.forcebytestr(inst.filename), reason)) | |
167 | if not inst.locker: |
|
167 | if not inst.locker: | |
168 | ui.warn(_("(lock might be very busy)\n")) |
|
168 | ui.warn(_("(lock might be very busy)\n")) | |
169 | except error.LockUnavailable as inst: |
|
169 | except error.LockUnavailable as inst: | |
170 | ui.warn(_("abort: could not lock %s: %s\n") % |
|
170 | ui.warn(_("abort: could not lock %s: %s\n") % | |
171 |
(inst.desc or |
|
171 | (inst.desc or util.forcebytestr(inst.filename), | |
172 | encoding.strtolocal(inst.strerror))) |
|
172 | encoding.strtolocal(inst.strerror))) | |
173 | except error.OutOfBandError as inst: |
|
173 | except error.OutOfBandError as inst: | |
174 | if inst.args: |
|
174 | if inst.args: | |
@@ -234,7 +234,7 b' def callcatch(ui, func):' | |||||
234 | if getattr(inst, "filename", None): |
|
234 | if getattr(inst, "filename", None): | |
235 | ui.warn(_("abort: %s: %s\n") % ( |
|
235 | ui.warn(_("abort: %s: %s\n") % ( | |
236 | encoding.strtolocal(inst.strerror), |
|
236 | encoding.strtolocal(inst.strerror), | |
237 |
|
|
237 | util.forcebytestr(inst.filename))) | |
238 | else: |
|
238 | else: | |
239 | ui.warn(_("abort: %s\n") % encoding.strtolocal(inst.strerror)) |
|
239 | ui.warn(_("abort: %s\n") % encoding.strtolocal(inst.strerror)) | |
240 | else: |
|
240 | else: | |
@@ -243,7 +243,7 b' def callcatch(ui, func):' | |||||
243 | if getattr(inst, "filename", None) is not None: |
|
243 | if getattr(inst, "filename", None) is not None: | |
244 | ui.warn(_("abort: %s: '%s'\n") % ( |
|
244 | ui.warn(_("abort: %s: '%s'\n") % ( | |
245 | encoding.strtolocal(inst.strerror), |
|
245 | encoding.strtolocal(inst.strerror), | |
246 |
|
|
246 | util.forcebytestr(inst.filename))) | |
247 | else: |
|
247 | else: | |
248 | ui.warn(_("abort: %s\n") % encoding.strtolocal(inst.strerror)) |
|
248 | ui.warn(_("abort: %s\n") % encoding.strtolocal(inst.strerror)) | |
249 | except MemoryError: |
|
249 | except MemoryError: |
General Comments 0
You need to be logged in to leave comments.
Login now