Commits

ZyX_I committed 2410feb

@aurum/drivers/mercurial: Made it reload aurum module just after import to
ensure it was not imported from cache and thus is not
outdated

Comments (0)

Files changed (1)

plugin/aurum/drivers/mercurial.vim

 let s:usepythondriver=0
 if has_key(s:_r, 'py')
     try
+        " execute s:_r.py.cmd "try:\n".
+                    " \       "    if type(aurum).__name__=='module':\n".
+                    " \       "        reload(aurum)\n".
+                    " \       "except NameError:\n".
+                    " \       "    pass"
         execute s:_r.py.cmd 'import aurum'
         let s:usepythondriver=1
     catch
         " s:usepythondriver stays equal to 0, errors are ignored
     endtry
+    execute s:_r.py.cmd 'reload(aurum)'
 endif
 let s:_messages={
             \ 'norepo': 'Repository %s not found',