# HG changeset patch # User Durham Goode # Date 1426629178 25200 # Node ID 8c445d8a915be919a03e69cc7211da5f78d16859 # Parent 9347c15d81367927c8936777d80faa8eaf6bbf07 obsolete: remove last instance of _enabled The _enabled bool has been replaced by obsolete.isenabled(...). This removes the last instance of it so I can remove the _enabled flag entirely shortly. diff -r 9347c15d8136 -r 8c445d8a915b mercurial/cmdutil.py --- a/mercurial/cmdutil.py Tue Feb 24 18:43:31 2015 -0800 +++ b/mercurial/cmdutil.py Tue Mar 17 14:52:58 2015 -0700 @@ -2436,7 +2436,7 @@ def amend(ui, repo, commitfunc, old, extra, pats, opts): # amend will reuse the existing user if not specified, but the obsolete # marker creation requires that the current user's name is specified. - if obsolete._enabled: + if obsolete.isenabled(repo, obsolete.createmarkersopt): ui.username() # raise exception if username not set ui.note(_('amending changeset %s\n') % old)