##// END OF EJS Templates
HGcommand.vim : HGGetStatusLine accept to display an empty 'branch' value
"Mathieu Clabaut " -
r2606:5cef1a92 default
parent child Browse files
Show More
@@ -635,13 +635,16 b' function! HGGetStatusLine()'
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
General Comments 0
You need to be logged in to leave comments. Login now