# HG changeset patch
# User Anton Shestakov <av6@dwimlabs.net>
# Date 1467811307 -28800
# Node ID 3fc42355adf8dc02906ccb31d7791dae0e8251a2
# Parent  fe38aeec943baed8278aae15ccaf95cacfdba997
models: use a simple heuristic to pick HgwebAdapter

diff -r fe38aeec943b -r 3fc42355adf8 candolint/models.py
--- 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)