Show More
@@ -322,7 +322,7 b' function! s:HGGetStatusVars(revisionVar,' | |||
|
322 | 322 | let fileName=bufname(hgBufferCheck) |
|
323 | 323 | let fileNameWithoutLink=s:HGResolveLink(fileName) |
|
324 | 324 | let realFileName = fnamemodify(fileNameWithoutLink, ':t') |
|
325 |
let oldCwd=s:HGChangeToCurrentFileDir( |
|
|
325 | let oldCwd=s:HGChangeToCurrentFileDir(realFileName) | |
|
326 | 326 | try |
|
327 | 327 | let hgCommand = s:HGGetOption("HGCommandHGExec", "hg") . " root " |
|
328 | 328 | let roottext=system(hgCommand) |
@@ -332,14 +332,14 b' function! s:HGGetStatusVars(revisionVar,' | |||
|
332 | 332 | return "" |
|
333 | 333 | endif |
|
334 | 334 | let returnExpression = "" |
|
335 | let hgCommand = s:HGGetOption("HGCommandHGExec", "hg") . " status -mardui " . fileName | |
|
335 | if a:repositoryVar != "" | |
|
336 | let returnExpression=returnExpression . " | let " . a:repositoryVar . "='" . roottext . "'" | |
|
337 | endif | |
|
338 | let hgCommand = s:HGGetOption("HGCommandHGExec", "hg") . " status -mardui " . realFileName | |
|
336 | 339 | let statustext=system(hgCommand) |
|
337 | 340 | if(v:shell_error) |
|
338 | 341 | return "" |
|
339 | 342 | endif |
|
340 | if a:repositoryVar != "" | |
|
341 | let returnExpression=returnExpression . " | let " . a:repositoryVar . "='" . roottext . "'" | |
|
342 | endif | |
|
343 | 343 | if match(statustext, '^[?I]') >= 0 |
|
344 | 344 | let revision="NEW" |
|
345 | 345 | elseif match(statustext, '^[R]') >= 0 |
@@ -1677,6 +1677,11 b' 8. Known bugs\t\t\t\t\t\t *hgcommand-bugs' | |||
|
1677 | 1677 | may still be bugs in here, depending on many configuration details. |
|
1678 | 1678 | |
|
1679 | 1679 | ============================================================================== |
|
1680 | ||
|
1681 | 9. TODO *hgcommand-todo* | |
|
1682 | ||
|
1683 | Integrate symlink tracking once HG will support them. | |
|
1684 | ============================================================================== | |
|
1680 | 1685 | === END_DOC |
|
1681 | 1686 | """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" |
|
1682 | 1687 | " v im:tw=78:ts=8:ft=help:norl: |
General Comments 0
You need to be logged in to leave comments.
Login now