Mercurial > hg > trac > jungle > src > mercurial-plugin
changeset 31:635936bdbe09 1.0
1.0.0.3dev: `MercurialConnector` is required when there is an hg repository enabled. Refs #11587.
author | rjollos <ryan.j.ollos@gmail.com> |
---|---|
date | Fri, 30 May 2014 06:20:59 -0700 |
parents | 21bb3cc19977 |
children | 96c854b89f5c |
files | tracext/hg/backend.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tracext/hg/backend.py Thu Feb 06 22:52:26 2014 +0100 +++ b/tracext/hg/backend.py Fri May 30 06:20:59 2014 -0700 @@ -335,6 +335,8 @@ implements(ISystemInfoProvider, IRepositoryConnector, IWikiSyntaxProvider) + required = False + encoding = ListOption('hg', 'encoding', 'utf-8', doc=""" Encoding that should be used to decode filenames, file content, and changeset metadata. If multiple encodings are @@ -418,7 +420,7 @@ # ISystemInfoProvider methods def get_system_info(self): - if self._version is not None: + if self.required: yield 'Mercurial', self._version # IRepositoryConnector methods @@ -437,6 +439,7 @@ self._setup_ui(self.hgrc) repos = MercurialRepository(dir, params, self.log, self) repos.version_info = self._version_info + self.required = True return repos # IWikiSyntaxProvider methods