Download:
child 236:3f5b52fcf6e1
parent 234:0b346b1387d5
235:5c6577eccbc5
Anton Shestakov <av6@dwimlabs.net>, Wed, 31 Aug 2016 12:25:36 +0800
models: another gross hack^W^Wclever heuristic to pick HgwebAdapter

1 файлов изменено, 1 вставок(+), 1 удалений(-) [+]
candolint/models.py file | annotate | diff | comparison | revisions
--- a/candolint/models.py Tue Aug 30 16:45:24 2016 +0800
+++ b/candolint/models.py Wed Aug 31 12:25:36 2016 +0800
@@ -63,7 +63,7 @@
return adapters.BitbucketAdapter(self)
elif self.domain == 'github.com':
return adapters.GithubAdapter(self)
- elif self.domain.startswith('hg.'):
+ elif self.domain.startswith('hg.') or 'mercurial' in self.domain:
return adapters.HgwebAdapter(self)
else:
return adapters.HostingAdapter(self)