Commits

ZyX_I committed 4e4ea02 Merge

Merge

  • Participants
  • Parent commits 23d6c7b, d42b7ca
  • Branches bzr-support

Comments (0)

Files changed (1)

File autoload/aurum/drivers/mercurial.vim

             " XXX get_updates also modifies a:repo
             " execute s:py 'import cProfile as profile'
             " execute s:py 'profile.run("'.s:pp.'.get_updates(vim.eval(''a:repo.path''), '.a:start.')", "python.profile")'
-            execute s:pya.'get_updates(vim.eval("a:repo.path"), '.a:start.')'
+            execute s:pya.'get_updates(vim.eval("a:repo.path"), "'.a:start.'")'
         endtry
         return d
     endfunction
         let r={}
         let tip_hex=a:repo.functions.getrevhex(a:repo, 'tip')
         let cschange=1
-        if a:start
+        if a:start isnot 0
             try
-                let oldtip=a:repo.functions.getcs(a:repo, a:start)
-                if tip_hex is# oldtp.hex
+                " XXX It is needed to force obtaining revision information hence 
+                "     s:F.getcs(), not rf-getcs()
+                let oldtip=s:F.getcs(a:repo, a:start)
+                if tip_hex is# oldtip.hex
                     let cschange=0
                 endif
                 let startrev=oldtip.rev
         return s:F.updatetags(a:repo)
     endif
     let d={}
-    let start=len(a:repo.mutable.cslist)-2
-    if start<0
-        let start=0
-    endif
+    let start=get(a:repo.mutable.cslist, -2, {'hex': 0}).hex
     " XXX getupdates may also modify repo
     let d=s:F.getupdates(a:repo, start)
     if empty(d)