This is an archive of the discontinued Mercurial Phabricator instance.

histedit: use hg.updaterepo() to avoid ui.{push|pop}buffer() hack
ClosedPublic

Authored by pulkit on Jun 30 2018, 11:09 AM.

Details

Summary

In some parts of code, we call hg.update() and surround that with
ui.pushbuffer() and ui.popbuffer() to suppress the output returned by
hg.update().

We have hg.updaterepo() which does not writes to UI and can be used instead.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.