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

durham (Durham Goode) phabricator at mercurial-scm.org
Thu Jul 13 15:51:00 EDT 2017


durham added inline comments.

INLINE COMMENTS

> util.py:594
> + at 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 think it's better to use 'tr' than invent some third term.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D66

EMAIL PREFERENCES
  https://phab.mercurial-scm.org/settings/panel/emailpreferences/

To: martinvonz, #hg-reviewers, durham
Cc: lothiraldan, mercurial-devel


More information about the Mercurial-devel mailing list