ZyX_I avatar ZyX_I committed b3f985d

@%aurum/drivers/mercurial: Fixed updating in non-python version of mercurial driver

Comments (0)

Files changed (1)

autoload/aurum/drivers/mercurial.vim

     return [cs, line]
 endfunction
 "▶2 getcslist :: repo, start, end
-function s:F.getcslist(repo, start, end)
+function s:F.getcslist(repo, start)
     let kwargs={'style': s:stylefile}
     let lines=s:F.hg(a:repo, 'log', [],
-                \    extend({'rev': a:start.':'.a:end}, kwargs), 0, 'log')[:-2]
+                \    extend({'rev': a:start.':-1'}, kwargs), 0, 'log')[:-2]
     let css=[]
     if has_key(a:repo.changesets, s:nullrev)
         let cs0=a:repo.changesets[s:nullrev]
         endif
         let r.startrev=startrev
         if cschange
-            let r.css=s:F.getcslist(a:repo, startrev, -1)
+            let r.css=s:F.getcslist(a:repo, startrev)
         else
             let r.css=[]
         endif
         endfor
         if a:repo.hasphases && startrev
             let r.phases=map(s:F.hg(a:repo, 'phase', [],
-                        \           {'rev': '0:'.(startrev-1)}, 0),
+                        \           {'rev': '0:'.(cschange?(startrev-1):-1)},
+                        \           0)[:-2],
                         \           'v:val[stridx(v:val, " ")+1:]')
         endif
         let a:repo.csnum=startrev+len(r.css)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.