equal
deleted
inserted
replaced
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', "") |