Commits

ZyX_I committed 6439bc1

@aurum/drivers/common/hypsites: Fixed sourceforge subversion html view URL
@aurum/drivers/subversion: Added missing repo.hypsites key
Added support for empty kind in log (observable,
for example, in sourceforge repositories checkouts)

Comments (0)

Files changed (2)

plugin/aurum/drivers/common/hypsites.vim

 let s:svngcfile='path[5:]."/".file'
 let s:hyp.svn=[
 \['domain =~? "\\Vsvn.sourceforge.net\\$"',
-\ {     'html': '"http://".domain."/viewvc".path[8:]."/".file."?view=log&pathrev=".cs.rev',
+\ {     'html': '"http://".domain."/viewvc".path[8:]."/".file."?view=markup&pathrev=".cs.rev',
 \        'raw': '"http://".domain."/viewvc".path[8:]."/".file."?pathrev=".cs.rev',
 \   'annotate': '"http://".domain."/viewvc".path[8:]."/".file."?annotate=".cs.rev',
 \     'bundle': '"http://".domain."/viewvc".path[8:]."?view=tar&pathrev=".cs.rev',

plugin/aurum/drivers/subversion.vim

                 call s:_f.throw('perr', '<path', a:csdata[line])
             endif                                "▲3
             let line+=1
-            let kind=matchstr(a:csdata[line], '\v(kind\=\")@<=\w+\"@=')
-            if empty(kind) "▶3
+            let kind=get(matchlist(a:csdata[line], 'kind="\(\w*\)"'), 1, 0)
+            if kind is 0 "▶3
                 call s:_f.throw('perr', 'kind="..."', a:csdata[line])
             endif          "▲3
             let line+=1
                 \              'branch', 'time', 'user', 'description',
                 \              'renames', 'copies', 'files', 'changes',
                 \              'removes'],
+                \'hypsites': deepcopy(s:hypsites),
                 \'has_merges': 0, 'iterfuncs': deepcopy(s:iterfuncs),}
     "▶2 Get svnprefix
     let str1='URL: '