Commits

ZyX_I committed 50f99ad

Add sf.net bundle URL

Comments (0)

Files changed (1)

autoload/aurum/drivers/common/hypsites.vim

 \       'html': '"https://sourceforge.net".path."/ci/".hex."/tree/".file',     'hline': '"l".line',
 \        'raw': '"https://sourceforge.net".path."/ci/".hex."/tree/".file."?format=raw"',
 \   'filehist': '"https://sourceforge.net".path."/ci/".hex."/log/?path=/".file',
+\     'bundle': '"https://sourceforge.net".path."/ci/".hex."/tarball"',
 \  'changeset': '"https://sourceforge.net".path."/ci/".hex."/"',
 \        'log': '"https://sourceforge.net".path."/commit_browser"',
 \}
+" XXX The following URL is correct, but useless: sf.net only generates files 
+"     available by this link after the request from the above page.
+let s:sfbundle='"http://sourceforge.net/code-snapshots/%s".substitute(path, ''\v\/[^/]+\/([^/])([^/]?)([^/]*)\/(.*)'', ''/\1/\1\2/\1\2\3/\4%s/\1\2\3-\4'', "")."-".hex.".zip"'
+" http://sourceforge.net/code-snapshots/hg/j/js/jsonvim/code/jsonvim-code-bb311da2aa49eff0c87378aab3b2917dbc447f06.zip
+" http://sourceforge.net/code-snapshots/git/v/vi/vimpluginloader/vam-test-repository.git/vimpluginloader-vam-test-repository-877cc8708d8fee72777852859b9697dd0fb4c679.zip
+" http://sourceforge.net/code-snapshots/svn/v/vi/vimpluginloader/svn/vimpluginloader-svn-2.zip
 unlet s:rhbase
 let s:rhdicts={}
 for [s:vcs, s:rh] in items(s:rhprojs)
 \['domain is? "hg.code.sf.net"', extend({
 \      'clone': '"http://".domain.path',
 \       'push': '"ssh://".user."@".domain.path',
-\}, s:sfdict)],
+\}, extend({'bundle': printf(s:sfbundle, 'hg', '')}, s:sfdict))],
 \['domain =~? "\\Vgooglecode.com\\$" && path[:2] is? "/hg"',
 \ {     'html': '"http://code.google.com/p/".'.s:gcproj.'."/source/browse/".file."?r=".hex', 'hline': 'line',
 \        'raw': '"http://".domain."/hg-history/".hex."/".file',
 \['domain is? "git.code.sf.net"', extend({
 \      'clone': '"git://".domain.path',
 \       'push': '"ssh://".user."@".domain.path',
-\}, s:sfdict)],
+\}, extend({'bundle': printf(s:sfbundle, 'git', '.git')}, s:sfdict))],
 \['domain is? "code.google.com"',
 \ {     'html': '"http://code.google.com/".substitute(path, "/$", "", "")."/source/browse/".file."?r=".hex',}],
 \['domain =~? ''\v^%(git\.)?gitorious\.org$''',
 \['domain is? "svn.code.sf.net"', extend({
 \      'clone': '"svn://".domain.path',
 \       'push': '"svn+ssh://".user."@".domain.path',
-\}, s:sfdict)],
+\}, extend({'bundle': printf(s:sfbundle, 'svn', '')}, s:sfdict))],
 \['domain =~? "\\Vgooglecode.com\\$" && path[:3] is? "/svn"',
 \ {     'html': s:svngcbase.'."/source/browse/".'.s:svngcfile.'."?rev=".hex', 'hline': 'line',
 \        'raw': '"http://".domain."/svn-history/r".hex.'.s:svngcfile,
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.