Commits

ZyX_I committed b170035

@%aurum/drivers/common/hypsites: Added support for tigris.org subversion URLs
@%aurum/hyperlink: Added support for password in the URL

Comments (0)

Files changed (3)

autoload/aurum/drivers/common/hypsites.vim

 "  https://vimpluginloader.svn.sourceforge.net/svnroot/vimpluginloader
 "  http://conque.googlecode.com/svn/trunk
 "  https://zyx.repositoryhosting.com/svn/zyx_t1 / svn+ssh://svn@zyx.repositoryhosting.com/zyx/t1
+"  http://pysvn.tigris.org/svn/pysvn/trunk
 let s:svngcbase='"http://code.google.com/p/".'.s:gcproj
 let s:svngcfile='path[5:]."/".file'
 let s:hyp.svn=[
 \        'log': '"http://".domain."/viewvcs".path[4:]."?view=log"',
 \      'clone': '"svn://".domain.path',
 \       'push': '"svn+ssh://".user."@".domain.path',}],
+\['domain =~? "\\Vtigris.org\\$"',
+\ {     'html': '"http://".domain."/source/browse".path[4:]."/".file."?view=markup&revision=".hex',
+\        'raw': '"http://".domain."/source/browse/*checkout*".path[4:]."/".file."?revision=".hex',
+\   'annotate': '"http://".domain."/source/browse".path[4:]."/".file."?annotate=".hex', 'aline': '"id".(line-1)',
+\   'filehist': '"http://".domain."/source/browse".path[4:]."/".file."?view=log"',
+\      'clone': '"http://".domain.path',
+\       'push': 'url',}],
 \['domain =~? "\\Vrepositoryhosting.com\\$" && protocol is? "https" && path[:3] is? "/svn"', s:rhdicts.svn.0],
 \['domain =~? "\\Vrepositoryhosting.com\\$" && protocol is? "svn+ssh"',                      s:rhdicts.svn.1],
 \]

autoload/aurum/hyperlink.vim

 scriptencoding utf-8
-execute frawor#Setup('0.0', {'@aurum': '1.0',
+execute frawor#Setup('0.1', {'@aurum': '1.0',
             \      '@%aurum/cmdutils': '4.0',
             \             '@/options': '0.0',})
 let s:_messages={
     endif
     "▲2
     let url=repo.functions.getrepoprop(repo, 'url')
-    let [protocol, user, domain, port, path]=
+    let [protocol, user, password, domain, port, path]=
                 \matchlist(url, '\v^%(([^:]+)\:\/\/)?'.
-                \                  '%(([^@/:]+)\@)?'.
+                \                  '%(([^@/:]+)'.
+                \                   '%(\:([^@/:]+))?\@)?'.
                 \                   '([^/:]*)'.
                 \                  '%(\:(\d+))?'.
-                \                   '(.*)$')[1:5]
+                \                   '(.*)$')[1:6]
     for [matcher, dict] in s:_f.getoption('hypsites')+repo.hypsites
         if eval(matcher)
             if !has_key(dict, utype)
         hex        Changeset hash (|aurum-cs.hex|) (url≠clone,push).
         url        URL of remote repository from local repository 
                    configuration.
-        protocol, user, domain, port, path
-                   Parts of the URL: {protocol}://{user}@{domain}{path}, 
-                   {path} must start with either forward slash or colon.
+        protocol, user, password, domain, port, path
+                   For {protocol}://{user}:{password}@{domain}:{port}{path} 
+                   each variable contains the value of {varname}. {path} must 
+                   start with either forward slash or colon and contains 
+                   everything after it. Each part may be omitted.
         matcher    First item in the current pair.
         dict       Second item in the current pair.
         utype      URL type.
     1.2: Made _r.status.parseshow handle “all” “status”.
 @%aurum/commit:
     1.0: Added fifth argument to _r.commit.commit().
-    1.1: Added sixth optional argument to _r.commit.commit()
+    1.1: Added sixth optional argument to _r.commit.commit().
     1.2: Added vimdiffcb and findwindow functions to aurum://commit bvar, 
          added |g:aurum_commitinfowincmd| option
 @%aurum/annotate:
          made _r.utils.run return a pair (output, exit_code)
 @%aurum/file:
     0.1: Added |:AuFile| prompt option.
+@%aurum/hyperlink:
+    0.1: Added support for password in URL.
 
 vim: ft=help:tw=78
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.