Mercurial > hg
view tests/test-extension.out @ 9116:f90bbf1ea09f
inotify: fix issue1375, add a test.
The biggest problem was the data structure, which did not allow changing
a file into a directory or vice versa. This problem is fixed by b55d44719b47.
The walk() method also had an issue in this case:
- we know 'path' as a directory. inotify server sleeps.
- 'path' is deleted
- 'path' is recreated as a file
- the server catches up here, and see the deletion. it instantiates a scan(),
which in its turn calls for walk(repo, path).
- walk() then assumes that 'path' is a directory and calls os.listdir on it,
which raises an OSError(errno.ENOTDIR)
Catch the error, and yield the file instead of the directory contents.
author | Nicolas Dumazet <nicdumz.commits@gmail.com> |
---|---|
date | Mon, 13 Jul 2009 16:49:05 +0200 |
parents | 9b8c9266c59d |
children | 98d90ad54749 |
line wrap: on
line source
uisetup called reposetup called for a ui == repo.ui Foo uisetup called reposetup called for a ui == repo.ui reposetup called for b ui == repo.ui updating working directory 1 files updated, 0 files merged, 0 files removed, 0 files unresolved uisetup called Bar % module/__init__.py-style uisetup called reposetup called for a ui == repo.ui Foo empty extension - empty cmdtable no commands defined debugextension extension - only debugcommands no commands defined debugextension extension - only debugcommands list of commands: debugfoobar: yet another debug command enabled extensions: debugextension only debugcommands global options: -R --repository repository root directory or symbolic path name --cwd change working directory -y --noninteractive do not prompt, assume 'yes' for any required answers -q --quiet suppress output -v --verbose enable additional output --config set/override config option --debug enable debugging output --debugger start debugger --encoding set the charset encoding (default: ascii) --encodingmode set the charset encoding mode (default: strict) --traceback print traceback on exception --time time how long the command takes --profile print command execution profile --version output version information and exit -h --help display help and exit % issue811 % show extensions debugissue811 mq