Commits

ZyX_I committed 6359896

@aurum: Fixed revision and branch completion
Improved AuFile completion: first argument is not really optional
(i.e. you can’t skip it and write AuFile replace)

Comments (0)

Files changed (1)

             \                      '}',
             \              'subs': [['\V:=(0)\s\+either (\[^)]\+)', 'path', ''],
             \                       ['\V:=(0)\s\+type ""',
-            \                         'either (type "" '.s:comprevarg.')', ''],
+            \                         'either (type "" '.s:comprevarg.')',  ''],
+            \                       ['\v\[(.{-})\]',                '\1',   ''],
             \                      ],
             \             },
             \'Record':    { 'fwc': '{  repo '.s:nogetrepoarg.
             \   'aboveleft new',  'belowright new',
             \   'topleft new',    'botright new',]
 call map(s:compcmds, 'escape(v:val, " ")')
-function s:F.getcrepo(...)
-    if a:0
-        return a:1
-    endif
-    return s:_r.cache.get('repo', s:_r.repo.get, [':'], {})
-endfunction
 function s:F.revlist(...)
-    let repo=call(s:F.getcrepo, a:000, {})
+    let repo=aurum#repository()
     return       repo.functions.getrepoprop(repo, 'tagslist')+
                 \repo.functions.getrepoprop(repo, 'brancheslist')+
                 \repo.functions.getrepoprop(repo, 'bookmarkslist')
 endfunction
-function s:F.branchlist(...)
-    let repo=call(s:F.getcrepo, a:000, {})
+function s:F.branchlist()
+    let repo=aurum#repository()
     return repo.functions.getrepoprop(repo, 'brancheslist')
 endfunction
 "▶1 Commands setup