Mercurial > hg
comparison mercurial/cmdutil.py @ 30493:762c8a128357
cmdutil: mark dirstateguard as deprecated
I sincerely doubt this is used in external code, as grepping the
extensions I keep locally (including Facebook's hgexperimental and
evolve) indicate nobody outside of core uses this. As such, I'd also
welcome just dropping this name forward entirely.
author | Augie Fackler <augie@google.com> |
---|---|
date | Mon, 21 Nov 2016 21:16:54 -0500 |
parents | 751639bf6fc4 |
children | c1149533676b |
comparison
equal
deleted
inserted
replaced
30492:77cd647b04ac | 30493:762c8a128357 |
---|---|
3520 hint = None | 3520 hint = None |
3521 if after[1]: | 3521 if after[1]: |
3522 hint = after[0] | 3522 hint = after[0] |
3523 raise error.Abort(_('no %s in progress') % task, hint=hint) | 3523 raise error.Abort(_('no %s in progress') % task, hint=hint) |
3524 | 3524 |
3525 dirstateguard = dirstateguardmod.dirstateguard | 3525 class dirstateguard(dirstateguardmod.dirstateguard): |
3526 def __init__(self, repo, name): | |
3527 dirstateguardmod.dirstateguard.__init__(self, repo, name) | |
3528 repo.ui.deprecwarn( | |
3529 'dirstateguard has moved from cmdutil to dirstateguard', | |
3530 '4.1') |