[Differential] [Commented On] D66: histedit: extract InterventionRequired transaction handling to utils

2017-07-13 Thread durham (Durham Goode)
durham added inline comments. INLINE COMMENTS > util.py:594 > +@contextlib.contextmanager > +def acceptintervention(tr=None): > +"""A context manager that closes the transaction on InterventionRequired Technically this will apply to dsguard as well, so 'tr' isn't quite precise. But I

[Differential] [Commented On] D66: histedit: extract InterventionRequired transaction handling to utils

2017-07-13 Thread martinvonz (Martin von Zweigbergk)
martinvonz added inline comments. INLINE COMMENTS > lothiraldan wrote in util.py:599 > The initial check was slighty more precise (if tr is not None), any specific > reason for the change? We generally prefer "not X" over "is not None" when they're functionally equivalent (and I do think they

[Differential] [Commented On] D66: histedit: extract InterventionRequired transaction handling to utils

2017-07-13 Thread lothiraldan (Boris Feld)
lothiraldan added a comment. LGTM apart from the condition change INLINE COMMENTS > util.py:599 > +""" > +if not tr: > +yield The initial check was slighty more precise (if tr is not None), any specific reason for the change? REPOSITORY rHG Mercurial REVISION DETAIL