comparison mercurial/cmdutil.py @ 24379:8c445d8a915b

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.
author Durham Goode <durham@fb.com>
date Tue, 17 Mar 2015 14:52:58 -0700
parents 135b23868f45
children 5cb459dc32d2
comparison
equal deleted inserted replaced
24378:9347c15d8136 24379:8c445d8a915b
2434 return commitfunc(ui, repo, message, matcher, opts) 2434 return commitfunc(ui, repo, message, matcher, opts)
2435 2435
2436 def amend(ui, repo, commitfunc, old, extra, pats, opts): 2436 def amend(ui, repo, commitfunc, old, extra, pats, opts):
2437 # amend will reuse the existing user if not specified, but the obsolete 2437 # amend will reuse the existing user if not specified, but the obsolete
2438 # marker creation requires that the current user's name is specified. 2438 # marker creation requires that the current user's name is specified.
2439 if obsolete._enabled: 2439 if obsolete.isenabled(repo, obsolete.createmarkersopt):
2440 ui.username() # raise exception if username not set 2440 ui.username() # raise exception if username not set
2441 2441
2442 ui.note(_('amending changeset %s\n') % old) 2442 ui.note(_('amending changeset %s\n') % old)
2443 base = old.p1() 2443 base = old.p1()
2444 2444