Source

aurum / autoload / aurum / repo.vim

The branch 'bzr-support' does not exist.
Diff from to

File autoload/aurum/repo.vim

 "▶1
-execute frawor#Setup('5.4', {'@/resources': '0.0',
+execute frawor#Setup('5.5', {'@/resources': '0.0',
             \                       '@/os': '0.0',
             \                  '@/options': '0.0',
             \          '@%aurum/lineutils': '0.0',
 function s:deffuncs.checkremote(...)
     return 0
 endfunction
-"▶1 aget :: _, rcid + python -> ?
+"▶1 aget, aremove
 let s:userepeatedcmd=0
 if has('python') && exists('*pyeval')
     try
         python import aurum.repeatedcmd
+        python reload(aurum.repeatedcmd)
         let s:userepeatedcmd=1
     catch
     endtry
 endif
 if s:userepeatedcmd
-    function s:deffuncs.aget(repo, rcid)
-        return pyeval('aurum.repeatedcmd.get(vim.bindeval("a:rcid"))')
+    augroup AuRCFinish
+        autocmd! VimLeave * python aurum.repeatedcmd.finish()
+    augroup END
+    let s:_augroups+=['AuRCFinish']
+    function s:deffuncs.aget(repo, rcid, ...)
+        return pyeval('aurum.repeatedcmd.get(vim.bindeval("a:rcid"), '.
+                    \                        (a:0 && a:1? 'True': 'False').')')
+    endfunction
+    function s:deffuncs.apause(repo, rcid)
+        python aurum.repeatedcmd.pause(vim.bindeval("a:rcid"))
+    endfunction
+    function s:deffuncs.aresume(repo, rcid)
+        python aurum.repeatedcmd.resume(vim.bindeval("a:rcid"))
     endfunction
     function s:deffuncs.aremove(repo, rcid)
-        return pyeval('aurum.repeatedcmd.remove(vim.bindeval("a:rcid"))')
+        python aurum.repeatedcmd.remove(vim.bindeval("a:rcid"))
     endfunction
 endif
 "▶1 iterfuncs: cs generators
     return repo
 endfunction
 "▶1 Post resource
-call s:_f.postresource('repo', {'get': s:F.getrepo,})
+call s:_f.postresource('repo', {'get': s:F.getrepo,
+            \        'userepeatedcmd': s:userepeatedcmd})
 "▶1 regdriver feature
 let s:requiredfuncs=['repo', 'getcs', 'checkdir']
 let s:optfuncs=['readfile', 'annotate', 'diff', 'status', 'commit', 'update',
             \   'diffre', 'getrepoprop', 'forget', 'branch', 'label',
-            \   'push', 'pull', 'astatus', 'agetcs', 'agetrepoprop', 'aget',
-            \   'aremove']
+            \   'push', 'pull']
 "▶2 regdriver :: {f}, name, funcs → + s:drivers
 function s:F.regdriver(plugdict, fdict, name, funcs)
     "▶3 Check arguments