--- a/candolint/adapters.py Wed Jul 06 14:04:03 2016 +0800
+++ b/candolint/adapters.py Wed Jul 06 14:04:30 2016 +0800
'basename': basename(line['filename']),
'line': line['line_number']
+class HgwebAdapter(HostingAdapter):
+ def get_commit_url(self, change):
+ return '{url}/rev/{node}'.format(**{
+ 'url': self.project.url,
+ def get_branch_url(self, change):
+ return '{url}/log/{branch}'.format(**{
+ 'url': self.project.url,
+ 'branch': change.branch
+ def get_line_url(self, change, line):
+ return '{url}/file/{node}/{filename}#l{line}'.format(**{
+ 'url': self.project.url,
+ 'filename': line['filename'],
+ 'line': line['line_number']