Commits

ZyX_I committed d71bf26

Fix incorrect :AuL

Ref #95

  • Participants
  • Parent commits 9f914e6

Comments (0)

Files changed (1)

File autoload/aurum/drivers/subversion.vim

     endif
     return a:repo.functions.getcs(a:repo, rev)
 endfunction
-"▶1 getchangesets :: repo → [cs]
+"▶1 getchangesets :: repo[, hex[, hex]|limit] → [cs]
 function s:F.getchangesets(repo, ...)
     let args=['--', a:repo.svnroot]
     let kwargs={'xml': 1, 'verbose': 1}
         call xml.skipctag()
         call xml.skipws()
         let a:repo.changesets[cs.hex]=cs
-        call insert(cslist, cs)
+        call add(cslist, cs)
     endwhile
+    if !has_key(kwargs, 'revision')
+        call reverse(cslist)
+    endif
     return cslist
 endfunction
 "▶1 svn.getchangesets :: repo → [cs]
             call remove(a:repo.mutable.cslist, -1)
         endwhile
     elseif tiprev>oldtiprev
-        let cslist=s:F.getchangesets(a:repo, ''.oldtiprev, ''.tiprev)
+        let cslist=s:F.getchangesets(a:repo, ''.(oldtiprev+1), ''.tiprev)
         if !empty(cslist)
             let a:repo.mutable.cslist[-1].children=
                         \''.(a:repo.mutable.cslist[-1].rev+1)