# HG changeset patch # User Pierre-Yves David # Date 1343737601 -7200 # Node ID 7d30d1becfc45773f5b54a326175e482ce1b1e29 # Parent 4c1997e41d18893695364e4a157d173f7e096950 obsolete: simplify obsolete feature enabling We don't need setattr here diff -r 4c1997e41d18 -r 7d30d1becfc4 hgext/obsolete.py --- a/hgext/obsolete.py Thu Aug 02 18:52:15 2012 +0200 +++ b/hgext/obsolete.py Tue Jul 31 14:26:41 2012 +0200 @@ -76,7 +76,7 @@ from mercurial import cmdutil from mercurial import templatekw from mercurial import obsolete -setattr(obsolete, '_enabled', True) +obsolete._enabled = True try: from mercurial.localrepo import storecache