Commits

ZyX_I committed bdbc792

@aurum/log: Fixed :read aurum://log:*
tests: Added :read aurum://* tests

  • Participants
  • Parent commits 066492b

Comments (0)

Files changed (5)

File plugin/aurum/log.vim

     let reqprops=keys(a:opts.reqs)
     call filter(reqprops, 'index(a:repo.initprops, v:val)==-1')
     let a:opts.skipchangesets={}
+    let skipchangesets=a:opts.skipchangesets
+    let firstcs=1
+    let lastline=0
+    let r=[]
     "▶3 Initialize variables not required for reading
     if !a:read
         let specials={}
         let rectangles=[]
         let csstarts={}
-        let r=[]
         let a:bvar.rectangles=rectangles
         let a:bvar.specials=specials
         let a:bvar.csstarts=csstarts
         let procinput=a:bvar.procinput
         let lastw0line=-1
         let buf=bufnr('%')
-        let firstcs=1
-        let lastline=0
     endif
     "▶3 Initialize iterator functions
     let ld=literfuncs.start(a:repo,a:opts,[a:repo.functions.getworkhex(a:repo)])
                             let specials[cs.hex]=special
                         endif
                     endif
-                    "▲3
                     "▶3 Add lines to returned list if reading
                     if a:read
                         let r+=lines

File test/cmdaus.in

+:W{{{1 :read
+:W{{{2 aurum://annotate
+:Run! read aurum://annotate:cmdausrepo:tip:chgrepo.zsh
+:%delete _
+:W{{{2 aurum://diff
+:Run! read aurum://diff:cmdausrepo:-2:-1::dates:0
+:%delete _
+:W{{{2 aurum://file
+:Run! read aurum://file:cmdausrepo:0:createrepo.zsh
+:%delete _
+:W{{{2 aurum://log
+:Run! read aurum://log:cmdausrepo:limit:1,revision:tip,files:chgrepo.zsh
+:%delete _
+:W{{{2 aurum://status
+:Run! read aurum://status:cmdausrepo:files:added\%a
+:%delete _

File test/cmdaus.ok

Binary file added.

File test/gentests-setuptestrepos.zsh

 svn checkout file://$PWD/svntestreposerver svntestrepo
 
 for test in annotate-buffers commit record stat statmaps vimdiff diff update \
-            prevmessage vimdiff-usewin vimdiff-full
+            prevmessage vimdiff-usewin vimdiff-full cmdaus
 do
     mkdir ${test}repo
     tar c -C testrepo . | (cd ${test}repo && tar x)

File test/git.ok

Binary file modified.