Mercurial > hg
view tests/test-fncache.out @ 7732:3793802ea41b
Make util.find_exe alway returns existing file, fixing issue1459
It seems like the old behaviour with different handling for commands with and
without path was intended, but I think this behaviour of util.find_exe is
better:
* Always returns existing file
* or None if command not found - no default
* Windows: Returned file thus always ends with extension from PATHEXT
This fixes http://www.selenic.com/mercurial/bts/issue1459. The change might
fix other unintended behaviour too.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Sun, 25 Jan 2009 21:20:13 +0100 |
parents | a3871028aacf |
children | 794def2fe232 |
line wrap: on
line source
% init repo1 % add a; ci adding a % cat .hg/store/fncache data/a.i % add a.i/b; ci adding a.i/b % cat .hg/store/fncache data/a.i data/a.i.hg/b.i % add a.i.hg/c; ci adding a.i.hg/c % cat .hg/store/fncache data/a.i data/a.i.hg/b.i data/a.i.hg.hg/c.i % hg verify checking changesets checking manifests crosschecking files in changesets and manifests checking files 3 files, 3 changesets, 3 total revisions % rm .hg/store/fncache % hg verify checking changesets checking manifests crosschecking files in changesets and manifests checking files data/a.i@0: missing revlog! data/a.i.hg.hg/c.i@0: missing revlog! data/a.i.hg/b.i@0: missing revlog! 3 files, 3 changesets, 3 total revisions 3 integrity errors encountered! (first damaged changeset appears to be 0)