Commits

ZyX_I committed bf42ab4

@aurum/drivers/subversion: Now not calling “svn info” for numeric revisions in rf-getrevhex()

Comments (0)

Files changed (2)

plugin/aurum/drivers/subversion.vim

 endfunction
 "▶1 svn.getrevhex :: repo, rev → hex
 function s:svn.getrevhex(repo, rev)
+    if a:rev=~#'\v^%(0|[1-9]\d*)$'
+        return a:rev
+    endif
     return s:F.getfrominfo(a:repo, 'Revision', {'revision': ''.a:rev})
 endfunction
 "▶1 decodeentities :: String → String

test/drivers-subversion-subdir.ok

 R file-2
 {{{1 Commit
 W In file newfile.vim
+o Changeset 10
+| @ Added newfile.vim
 {{{1 Commit 2
 
 # Modified newfile.vim
+o Changeset 11
+| @ Added second line to newfile.vim
+| @ // It was not required really
 {{{1 Update
 Line 1
 First line
 Second line
 Third line
 {{{1 Move
+o Changeset 12
+| Renamed pqr to stu
+| @ Moved pqr to stu
 {{{1 Move: copy
+o Changeset 13
+| Copied stu to pqr
+| @ Copied stu to pqr
 {{{1 Junk: forget, remove
 11
 11
+o Changeset 14
+| @ Removed pqr
 {{{1 Grep: working directory
 svntest-subdirrepo/newfile.vim|1| W In file newfile.vim
 svntest-subdirrepo/newfile.vim|2| W File newfile.vim, second line