Mercurial > public > mercurial-scm > hg-stable
diff tests/bruterebase.py @ 39699:337d6e0fd9c9
transaction: make report a private attribute
This is a callable used for logging. It isn't used outside the
transaction code. It doesn't need to be part of the public interface.
Let's mark it as private.
Differential Revision: https://phab.mercurial-scm.org/D4631
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 17 Sep 2018 16:11:25 -0700 |
parents | 3b98ffd2dde3 |
children | 2372284d9457 |
line wrap: on
line diff
--- a/tests/bruterebase.py Mon Sep 17 16:08:02 2018 -0700 +++ b/tests/bruterebase.py Mon Sep 17 16:11:25 2018 -0700 @@ -45,7 +45,7 @@ subset = [rev for j, rev in enumerate(srevs) if i & (1 << j) != 0] spec = revsetlang.formatspec(b'%ld', subset) tr = repo.transaction(b'rebase') - tr.report = lambda x: 0 # hide "transaction abort" + tr._report = lambda x: 0 # hide "transaction abort" ui.pushbuffer() try: