Download:
child 118:71f8675cfaa9
parent 116:fe38aeec943b
117:3fc42355adf8
Anton Shestakov <av6@dwimlabs.net>, Wed, 06 Jul 2016 21:21:47 +0800
models: use a simple heuristic to pick HgwebAdapter

1 файлов изменено, 2 вставок(+), 0 удалений(-) [+]
candolint/models.py file | annotate | diff | comparison | revisions
--- a/candolint/models.py Wed Jul 06 19:50:17 2016 +0800
+++ b/candolint/models.py Wed Jul 06 21:21:47 2016 +0800
@@ -57,6 +57,8 @@
def get_adapter(self):
if self.domain == 'bitbucket.org':
return adapters.BitbucketAdapter(self)
+ elif self.domain.startswith('hg.'):
+ return adapters.HgwebAdapter(self)
else:
return adapters.HostingAdapter(self)