# HG changeset patch # User Angel Ezquerra # Date 2013-02-09 10:00:42 # Node ID 013fcd112f13f31a35ea6a40d8cd1c6923cdaf20 # Parent 52305554fd6e8f1dc281acacc3ef5941f62d89e3 extensions: obsolete and remove interhg extension With the addition of the websub filter extension this extension is no longer needed. We maintain a sort of backwards compatibility by reading the [interhg] section and using it as we would use the [websub] section. diff --git a/mercurial/extensions.py b/mercurial/extensions.py --- a/mercurial/extensions.py +++ b/mercurial/extensions.py @@ -11,7 +11,7 @@ from i18n import _, gettext _extensions = {} _order = [] -_ignore = ['hbisect', 'bookmarks', 'parentrevspec'] +_ignore = ['hbisect', 'bookmarks', 'parentrevspec', 'interhg'] def extensions(): for name in _order: diff --git a/mercurial/hgweb/hgweb_mod.py b/mercurial/hgweb/hgweb_mod.py --- a/mercurial/hgweb/hgweb_mod.py +++ b/mercurial/hgweb/hgweb_mod.py @@ -264,6 +264,8 @@ class hgweb(object): def loadwebsub(self): websubtable = [] websubdefs = self.repo.ui.configitems('websub') + # we must maintain interhg backwards compatibility + websubdefs += self.repo.ui.configitems('interhg') for key, pattern in websubdefs: # grab the delimiter from the character after the "s" unesc = pattern[1] diff --git a/tests/test-interhg.t b/tests/test-websub.t rename from tests/test-interhg.t rename to tests/test-websub.t --- a/tests/test-interhg.t +++ b/tests/test-websub.t @@ -5,11 +5,15 @@ $ cat > .hg/hgrc < [extensions] + > # this is only necessary to check that the mapping from + > # interhg to websub works > interhg = > + > [websub] + > issues = s|Issue(\d+)|Issue\1| + > > [interhg] - > issues = s|Issue(\d+)|Issue\1| - > + > # check that we maintain some interhg backwards compatibility... > # yes, 'x' is a weird delimiter... > markbugs = sxbugxbugx > EOF @@ -23,9 +27,8 @@ log - $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '' | grep bts - Issue123: fixed the bug!default tip - + $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT "rev/tip" | grep bts +
Issue123: fixed the bug!
errors $ cat errors.log