From: Eric S. Raymond Date: Fri, 23 Nov 2012 04:58:19 +0000 (-0500) Subject: Fix submitted by dmlm for generated Mercrial URLs. X-Git-Tag: 1.14~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=05ab74e78a2b832489fef5488afcc5ee914396f4;p=irker.git Fix submitted by dmlm for generated Mercrial URLs. The constructed mercurial url is wrong - it creates urls like "repo/rev3456fg", which just get redirected to the default log, rather than the commit. The url should be "repo/rev/3456fg". --- diff --git a/irkerhook.py b/irkerhook.py index a60084e..6a46622 100755 --- a/irkerhook.py +++ b/irkerhook.py @@ -349,7 +349,7 @@ class HgExtractor(GenericExtractor): ui.config('web', 'baseurl') or '') if self.urlprefix: # self.commit is appended to this by do_overrides - self.urlprefix = self.urlprefix.rstrip('/') + '/rev' + self.urlprefix = self.urlprefix.rstrip('/') + '/rev/' self.cialike = ui.config('irker', 'cialike') self.filtercmd = ui.config('irker', 'filtercmd') if not self.project: