sapling/edenscm
Thomas Orozco 398d8bcc1f hgsql: expose reason on top of sqlisreporeadonly
Summary:
This introduces `repo.sqlreporeadonlystate()`, which works similarly to `repo.sqlisreporeadonly()`, but also gets the reason why the read only state is the way it is.

The underlying goal is to use this in a repo hook to report the lock state.

I retained the `sqlisreporeadonly` function so that we don't need to synchronize deployment of this code and the underlying hook.

Reviewed By: quark-zju

Differential Revision: D15165946

fbshipit-source-id: 0a62147167fa826b575178dd261990a956b5f317
2019-05-02 09:08:51 -07:00
..
hgdemandimport codemod: move Python packages to edenscm 2019-01-28 18:35:41 -08:00
hgext hgsql: expose reason on top of sqlisreporeadonly 2019-05-02 09:08:51 -07:00
mercurial edenapi: make hg debughttp print real hostname of api server 2019-05-01 19:56:32 -07:00
__init__.py codemod: move Python packages to edenscm 2019-01-28 18:35:41 -08:00