contrib/vim/hgcommand.vim
changeset 2606 5cef1a92aa04
parent 2605 4ad79eeebf96
child 2607 070736e20dfd
equal deleted inserted replaced
2605:4ad79eeebf96 2606:5cef1a92aa04
   633     return value
   633     return value
   634   endif
   634   endif
   635 
   635 
   636   if exists('b:HGRevision')
   636   if exists('b:HGRevision')
   637         \ && b:HGRevision != ''
   637         \ && b:HGRevision != ''
   638         \ && exists('b:HGBranch')
       
   639         \ && b:HGBranch != ''
       
   640         \ && exists('b:HGRepository')
   638         \ && exists('b:HGRepository')
   641         \ && b:HGRepository != ''
   639         \ && b:HGRepository != ''
   642         \ && exists('g:HGCommandEnableBufferSetup')
   640         \ && exists('g:HGCommandEnableBufferSetup')
   643         \ && g:HGCommandEnableBufferSetup
   641         \ && g:HGCommandEnableBufferSetup
   644    return '[HG ' . b:HGRepository . '/' . b:HGBranch .'/' . b:HGRevision . ']'
   642     if !exists('b:HGBranch')
       
   643       let l:branch=''
       
   644     else
       
   645       let l:branch=b:HGBranch
       
   646     endif
       
   647     return '[HG ' . b:HGRepository . '/' . l:branch .'/' . b:HGRevision . ']'
   645   else
   648   else
   646     return ''
   649     return ''
   647   endif
   650   endif
   648 endfunction
   651 endfunction
   649 
   652