Cannot search Working Copy: "path contains illegal component"

Issue #3433 resolved
Norman Hezek
created an issue

With some repos or sometimes (I don't know), searching the working copy does not work. Using the "Search" widget to search the WC for a word like "keep" causes nothing to happen except for the status bar to show the following: "path contains illegal component: [ ] Searching 0 / 939 files". Nothing more of the error message is visible. The "[ ]" denotes an empty progress bar. My WC path is something like "E:\WCs\company\productA".

I did not get a longer or other error message, even though I tried this: Setting ui.traceback=1 and tortoisehg.guifork=False in the mercurial.ini, then launching "thg.exe --nofork" from the commandline after having "set THGDEBUG=1".

[THG 2.9.2 on Win7 32-bit.]

Comments (11)

  1. Norman Hezek reporter

    Ah, there's something wrong with the output of "hg debugdirstate":

    % hg debugdirstate
    <NUL>   0          0 1970-01-01 01:00:00 
    n 644        365 2013-10-18 10:51:26 .hgignore
    n 755         27 2013-01-18 23:19:38 build/build-debug32.bat
    n 755         29 2013-01-18 23:19:49 build/build-release32.bat

    That <NUL> in the first line represents a NUL character (ASCII 0).

    The output of "hg status" looks normal:

    % hg status
    M .hgignore
    M build\env.bat
    A doc\Design\Terminology.odt
    ? build\ngen-release32.bat
  2. Norman Hezek reporter

    Running hg debugrebuilddirstate, then refreshing the view (F5), fixed the problem.

    Thank you very much for your help. I assume it's inefficient to investigate how the bad entry may have gotten into the dirstate file, so I'd agree with closing this bug.

  3. Log in to comment