Commits

ZyX_I committed 54be112

Made tests always override HGRCPATH, setting it to valid location

Comments (0)

Files changed (2)

+[ui]
+username = ZyX <kp-pav@ya.ru>
     endtry
 endfunction
 command -nargs=1 Try :call s:Try(<q-args>)
-let $HGRC=''
-let $HGRCPATH=''
+let $HGRCPATH=fnamemodify('hgrc', ':p')
+if has('python')
+    python import os, vim
+    python os.environ.update({'HGRCPATH': vim.eval('$HGRCPATH')})
+endif
 let $EMAIL='ZyX <kp-pav@yandex.ru>'
 let g:mapleader=','
 let g:maplocalleader=','