[Bug 5518] New: blackbox silently drops content if it does not log anything with the repo ui
mercurial-bugs at mercurial-scm.org
mercurial-bugs at mercurial-scm.org
Tue Apr 4 01:04:29 UTC 2017
https://bz.mercurial-scm.org/show_bug.cgi?id=5518
Bug ID: 5518
Summary: blackbox silently drops content if it does not log
anything with the repo ui
Product: Mercurial
Version: default branch
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: bug
Priority: wish
Component: blackbox
Assignee: bugzilla at mercurial-scm.org
Reporter: arcppzju+hgbug at gmail.com
CC: mercurial-devel at mercurial-scm.org
With the following config:
$ cat >> $HGRCPATH << EOF
> [extensions]
> blackbox=
> [blackbox]
> track = commandexception
> EOF
And a problematic extension that raises in a command:
from mercurial import cmdutil
cmdtable = {}
command = cmdutil.command(cmdtable)
@command('crash', [], 'crash')
def crash(*args):
raise 1
Blackbox cannot log the exception.
But if the config is changed to "track = command, commandexception", blackbox
can log the exception.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list