hgext/clang-format/__init__.py [98:116]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    except Exception as e:
        repo.ui.warn(b"Exception %s\n" % pycompat.bytestr(str(e)))

    finally:
        lock.release()
        return orig(repo, *args, **kwargs)


def wrappedamend(orig, ui, repo, old, extra, pats, opts):
    """Wraps cmdutil.amend to run clang-format during `hg commit --amend`"""
    wctx = repo[None]
    matcher = scmutil.match(wctx, pats, opts)
    filestoamend = [f for f in wctx.files() if matcher(f)]

    if not filestoamend:
        return orig(ui, repo, old, extra, pats, opts)

    try:
        with repo.wlock():
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



hgext/js-format/__init__.py [93:111]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    except Exception as e:
        repo.ui.warn(b"Exception %s\n" % pycompat.bytestr(str(e)))

    finally:
        lock.release()
        return orig(repo, *args, **kwargs)


def wrappedamend(orig, ui, repo, old, extra, pats, opts):
    """Wraps cmdutil.amend to run eslint and prettier during `hg commit --amend`"""
    wctx = repo[None]
    matcher = scmutil.match(wctx, pats, opts)
    filestoamend = [f for f in wctx.files() if matcher(f)]

    if not filestoamend:
        return orig(ui, repo, old, extra, pats, opts)

    try:
        with repo.wlock():
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



