diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2018-04-03 23:19:46 +1200 |
---|---|---|
committer | Paul Eggleton <paul.eggleton@linux.intel.com> | 2018-05-04 23:57:53 +1200 |
commit | a6aaa5c8efef3009086032c7e54a519714940a1b (patch) | |
tree | 52c80530a90ddbc8e2f99ab89b1720cf18f5c775 /rrs/models.py | |
parent | c78fbde643d46f8ed9acbb36ab091234581fb2e0 (diff) | |
download | openembedded-core-contrib-a6aaa5c8efef3009086032c7e54a519714940a1b.tar.gz |
Implement layer web repo commit URL
The Recipe Reporting System needs to be able to provide links to commits
in the web interface for the repository, but we can only do this if we
have a custom template URL just like we do for file/tree links, since
it's different for different git web interfaces. Add support in all the
various places for such a URL and make use of it in the RRS.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'rrs/models.py')
-rw-r--r-- | rrs/models.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/rrs/models.py b/rrs/models.py index c86dc93ece..635193cf54 100644 --- a/rrs/models.py +++ b/rrs/models.py @@ -401,8 +401,7 @@ class RecipeUpgrade(models.Model): return self.sha1[0:6] def commit_url(self): - web_interface_url = self.recipe.layerbranch.layer.vcs_web_url - return web_interface_url + "/commit/?id=" + self.sha1 + return self.recipe.layerbranch.commit_url(self.sha1) def __str__(self): return '%s: (%s, %s)' % (self.recipe.pn, self.version, |