Commits

ZyX_I  committed 401c20c

Add getnthchangerev implementation to subversion driver

  • Participants
  • Parent commits 225bb50

Comments (0)

Files changed (1)

File autoload/aurum/drivers/subversion.vim

 "▶1
 scriptencoding utf-8
 execute frawor#Setup('0.1', {'@%aurum/drivers/common/hypsites': '0.0',
-            \                                   '@%aurum/repo': '5.0',
+            \                                   '@%aurum/repo': '5.8',
             \                   '@%aurum/drivers/common/utils': '1.1',
             \                     '@%aurum/drivers/common/xml': '0.0',
             \                                           '@/os': '0.0',
     endif
     return a:repo.functions.getcs(a:repo, rev)
 endfunction
+"▶1 svn.getnthchangerev :: repo, rev, n, [ file ] → (cs, [ file ])
+function s:svn.getnthchangerev(repo, rev, n, files)
+    " TODO Do not download all changesets
+    call a:repo.functions.updatechangesets(a:repo)
+    return s:_r.repo.defaultfuncs.getnthchangerev(a:repo, a:rev, a:n, a:files)
+endfunction
 "▶1 getchangesets :: repo[, hex[, hex]|limit] → [cs]
 function s:F.getchangesets(repo, ...)
     let args=['--', a:repo.svnroot]