[Bug 5741] New: obsolete.isenabled() returns False

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Wed Nov 15 18:39:27 EST 2017


            Bug ID: 5741
           Summary: obsolete.isenabled() returns False
           Product: Mercurial
           Version: 4.4.1
          Hardware: PC
                OS: Linux
            Status: UNCONFIRMED
          Severity: feature
          Priority: wish
         Component: evolution
          Assignee: bugzilla at mercurial-scm.org
          Reporter: sphink at gmail.com
                CC: mercurial-devel at mercurial-scm.org,
                    pierre-yves.david at ens-lyon.org

obsolete.isenabled(repo, 'myext') is returning False, despite obsmarkers being
enabled in 4.4.1. It's because it calls repo.ui.configbool('experimental',
'evolution.myext'), which return False (no such option exists) instead of the
None that the code seems to be expecting. I believe this would be fixed if it
just did repo.ui.configbool('experimental', configkey, None), though perhaps
there's a better way to do it.

Perhaps that better way would be to make obsolete.isenabled() return True
unconditionally? Aren't obsolete markers always enabled now?

This is with Mercurial Distributed SCM (version 4.4.1+4-99ab7bc944d2)

You are receiving this mail because:
You are on the CC list for the bug.

More information about the Mercurial-devel mailing list