Commits

ZyX_I  committed aa9a35e

@aurum/drivers/common/hypsites: Added git.kitenet.net support
@aurum/drivers/common/utils: Fixed utils.run(, 1) showing an error in some cases
@aurum/drivers/git: Added repo.hypsites key

  • Participants
  • Parent commits 1ee908c

Comments (0)

Files changed (3)

File plugin/aurum/drivers/common/hypsites.vim

 "       ssh://repo.or.cz/srv/git/test2.git
 "  git://gitorious.org/test4/test.git / https://git.gitorious.org/test4/test.git
 "       / ssh://git@gitorious.org:test4/test.git
+"  git://git.kitenet.net/mr.git / http://git.kitenet.net/git/mr.git
+"       / ssh://git.kitenet.net/srv/git/mr.git
 "  (unable to clone with hg-git) https://code.google.com/p/tortoisegit/
 let s:ghpath='substitute(path, "\\v^[:/]|\\.git$", "", "g")'
 let s:roproj='matchstr(path, ''\v\/@<=[^/]{-1,}%(%(\.git)?\/*$)@='').".git"'
 \        'log': s:robase.'."/log/".hex',
 \      'clone': '"git://".domain."/".'.s:roproj,
 \       'push': '"ssh://".domain."/srv/git/".'.s:roproj,}],
+\['domain =~? "\\Vgit.kitenet.net\\$"',
+\ {     'html': '"http://".domain."/?p=".'.s:roproj.'.";a=blob;hb=".hex.";f=".file', 'hline': '"l".line',
+\        'raw': '"http://".domain."/?p=".'.s:roproj.'.";a=blob_plain;hb=".hex.";f=".file',
+\   'filehist': '"http://".domain."/?p=".'.s:roproj.'.";a=history;hb=".hex.";f=".file',
+\  'changeset': '"http://".domain."/?p=".'.s:roproj.'.";a=commitdiff;hb=".hex',
+\        'log': '"http://".domain."/?p=".'.s:roproj.'.";a=log"',
+\      'clone': '"git://".domain."/".'.s:roproj,
+\       'push': '"ssh://".domain."/srv/git/".'.s:roproj,}],
 \]
 unlet s:ghpath s:roproj s:robase s:godomain s:gobase
 "▶1 subversion

File plugin/aurum/drivers/common/utils.vim

         endtry
     elseif a:hasnulls
         let savedlazyredraw=&lazyredraw
+        let savedeventignore=&eventignore
+        set eventignore=all
         set lazyredraw
-        noautocmd tabnew
-        if !empty(a:cdpath)
-            noautocmd execute 'lcd' fnameescape(a:cdpath)
-        endif
-        " XXX this is not able to distinguish between output with and without 
-        " trailing newline, and also is “smart” about lineendings
-        noautocmd execute '%!'.a:cmd
-        let r=getline(1, '$')
-        noautocmd bwipeout!
-        let &lazyredraw=savedlazyredraw
+        try
+            tabnew
+            setlocal buftype=nofile modifiable noreadonly
+            if !empty(a:cdpath)
+                execute 'lcd' fnameescape(a:cdpath)
+            endif
+            " XXX this is not able to distinguish between output with and 
+            " without trailing newline, and also is “smart” about lineendings
+            silent execute '%!'.a:cmd
+            let r=getline(1, '$')
+            bwipeout!
+        finally
+            let &lazyredraw=savedlazyredraw
+            let &eventignore=savedeventignore
+        endtry
     else
         let cmd=a:cmd
         if !empty(a:cdpath)

File plugin/aurum/drivers/git.vim

                 \'local': (stridx(a:path, '://')==-1),
                 \'labeltypes': ['tag', 'branch'],
                 \'hasrevisions': 0, 'requires_sort': 0,
-                \'githpath': s:_r.os.path.join(a:path, '.git', 'refs', 'heads')}
+                \'githpath': s:_r.os.path.join(a:path, '.git', 'refs', 'heads'),
+                \'hypsites': deepcopy(s:hypsites),}
     if has_key(s:prevrevhex, a:path)
         unlet s:prevrevhex[a:path]
     endif