Mercurial > hg
comparison mercurial/hgweb/hgweb_mod.py @ 18629:013fcd112f13
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.
author | Angel Ezquerra <angel.ezquerra@gmail.com> |
---|---|
date | Sat, 09 Feb 2013 11:00:42 +0100 |
parents | 4e949b8e0930 |
children | 35fb2ef52a39 |
comparison
equal
deleted
inserted
replaced
18628:52305554fd6e | 18629:013fcd112f13 |
---|---|
262 return tmpl('error', error=inst.message) | 262 return tmpl('error', error=inst.message) |
263 | 263 |
264 def loadwebsub(self): | 264 def loadwebsub(self): |
265 websubtable = [] | 265 websubtable = [] |
266 websubdefs = self.repo.ui.configitems('websub') | 266 websubdefs = self.repo.ui.configitems('websub') |
267 # we must maintain interhg backwards compatibility | |
268 websubdefs += self.repo.ui.configitems('interhg') | |
267 for key, pattern in websubdefs: | 269 for key, pattern in websubdefs: |
268 # grab the delimiter from the character after the "s" | 270 # grab the delimiter from the character after the "s" |
269 unesc = pattern[1] | 271 unesc = pattern[1] |
270 delim = re.escape(unesc) | 272 delim = re.escape(unesc) |
271 | 273 |