Commits

ZyX_I committed b446f5a

@aurum/drivers/subversion: Removed svnprefix from the start of file names

  • Participants
  • Parent commits ebf9905
  • Branches svnsupport

Comments (0)

Files changed (1)

File plugin/aurum/drivers/subversion.vim

                     call s:_f.throw('perr', 'copyfrom-rev="N"', a:csdata[line])
                 endif
                 let line+=1
+                if svnplidx==-1 || source[:(svnplidx)] is# a:repo.svnprefix
+                    let source=source[(svnplidx+1):]
+                else
+                    let source=''
+                endif
             endif
             "▲3
             let match=matchlist(a:csdata[line],
             let [action, file]=match
             "▶3 Add file to list(s)
             if svnplidx==-1 || file[:(svnplidx)] is# a:repo.svnprefix
+                let file=file[(svnplidx+1):]
                 if has_key(s:logstatchars, action)
                     let status=s:logstatchars[action]
                     let cs.status[status]+=[file]
     let revstatus={}
     for line in slines
         let status=line[:6]
-        let file=(a:repo.svnprefix).line[8:]
+        let file=line[8:]
         let col=0
         for colschars in s:statchars
             if has_key(colschars, status[col])
         elseif hasfiles && index(a:files, filematch[0])==-1
             continue
         else
-            let file=(a:repo.svnprefix).filematch[0]
+            let file=filematch[0]
         endif
     endwhile
     "▲2
     endfor
     return a:dir
 endfunction
-"▶1 svn.reltorepo :: repo, path → rpath
-function s:svn.reltorepo(repo, path)
-    return a:repo.svnprefix.
-                \join(s:_r.os.path.split(s:_r.os.path.relpath(a:path,
-                \                                             a:repo.path))[1:],
-                \     '/')
-endfunction
 "▶1 Register driver
 call s:_f.regdriver('Subversion', s:svn)
 "▶1