Fix submitted by dmlm for generated Mercrial URLs.
authorEric S. Raymond <esr@thyrsus.com>
Fri, 23 Nov 2012 04:58:19 +0000 (23:58 -0500)
committerEric S. Raymond <esr@thyrsus.com>
Fri, 23 Nov 2012 04:59:58 +0000 (23:59 -0500)
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".

irkerhook.py

index a60084ecce81ad769eca6aa4071302e44bf5fe85..6a46622bae3dba1fce1052e7ee8988653da04270 100755 (executable)
@@ -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: