Mercurial > hg
comparison contrib/vim/hgcommand.vim @ 3542:bf48ca46139b
hgcommand.vim: remove deprecated -b option from hg parents.
author | Christian Ebert <blacktrash@gmx.net> |
---|---|
date | Wed, 25 Oct 2006 21:01:00 +0200 |
parents | 19436facb073 |
children | 04d44c3d64f7 |
comparison
equal
deleted
inserted
replaced
3541:ee6b8de6df3c | 3542:bf48ca46139b |
---|---|
370 let revision="DELETED" | 370 let revision="DELETED" |
371 elseif match(statustext, '^[A]') >= 0 | 371 elseif match(statustext, '^[A]') >= 0 |
372 let revision="ADDED" | 372 let revision="ADDED" |
373 else | 373 else |
374 " The file is tracked, we can try to get is revision number | 374 " The file is tracked, we can try to get is revision number |
375 let hgCommand = <SID>HGGetOption("HGCommandHGExec", "hg") . " parents -b " | 375 let hgCommand = <SID>HGGetOption("HGCommandHGExec", "hg") . " parents " |
376 let statustext=system(hgCommand) | 376 let statustext=system(hgCommand) |
377 if(v:shell_error) | 377 if(v:shell_error) |
378 return "" | 378 return "" |
379 endif | 379 endif |
380 let revision=substitute(statustext, '^changeset:\s*\(\d\+\):.*\_$\_.*$', '\1', "") | 380 let revision=substitute(statustext, '^changeset:\s*\(\d\+\):.*\_$\_.*$', '\1', "") |