Mercurial > hgweb.cgi > hwm
changeset 64:4f295ab3a0b7
Fixed error when plug-in not being set when repository was not found.
author | John Schneiderman |
---|---|
date | Tue, 07 Apr 2015 20:03:21 +0200 |
parents | 670c2af462f6 |
children | d20e6d543ee8 |
files | .hgignore src/manrepo.py |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/.hgignore Tue Apr 07 19:37:30 2015 +0200 +++ b/.hgignore Tue Apr 07 20:03:21 2015 +0200 @@ -4,3 +4,4 @@ dist/* MANIFEST build/* +*.kate-swp
--- a/src/manrepo.py Tue Apr 07 19:37:30 2015 +0200 +++ b/src/manrepo.py Tue Apr 07 20:03:21 2015 +0200 @@ -96,11 +96,12 @@ self.__displayName = self.__repo.ui.config('web', 'name', default=None) self.__description = self.__repo.ui.config('web', 'description', default=None) self.__contact = self.__repo.ui.config('web', 'contact', default=None) + self.__plugIns = [] plugInList = self.__repo.ui.configitems('extensions') - self.__plugIns = [] for plugIn in plugInList: self.__plugIns.append(RepositoryPlugin(plugIn[0], plugIn[1], self.__repo.ui.configitems(plugIn[0]))) except error.RepoError: + self.__plugIns = [] pass def __eq__(self, other):