# HG changeset patch # User Ludovic Chabant # Date 1324881846 28800 # Node ID 799c7b57e19a3dad4047c29c3395ac6ceaa30bb1 # Parent 3a0f7bb6ea64d64cfc946d9210b14f13d4165162# Parent 35d097b9513c394ae600e8d7b0df8d85b7c6aa0e Merged changes. diff -r 3a0f7bb6ea64 -r 799c7b57e19a plugin/lawrencium.vim --- a/plugin/lawrencium.vim Sun Dec 25 22:40:30 2011 -0800 +++ b/plugin/lawrencium.vim Sun Dec 25 22:44:06 2011 -0800 @@ -761,8 +761,11 @@ endif let l:prefix = (a:0 > 0 ? a:1 : '') let l:suffix = (a:0 > 1 ? a:2 : '') + let l:branch = 'default' let l:branch_file = s:hg_repo().GetFullPath('.hg/branch') - let l:branch = readfile(l:branch_file)[0] + if filereadable(l:branch_file) + let l:branch = readfile(l:branch_file)[0] + endif return l:prefix . l:branch . l:suffix endfunction