view tests/test-convert-svn-move.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 8b603c7c808e
children 55abde5cba43
line wrap: on
line source

% convert trunk and branches
initializing destination A-hg repository
scanning source...
sorting...
converting...
11 createtrunk
10 moved1
9 moved1
8 moved2
7 changeb and rm d2
6 changeb and rm d2
5 moved1again
4 moved1again
3 copyfilefrompast
2 copydirfrompast
1 add d3
0 copy dir and remove subdir
o  11 copy dir and remove subdir files: d3/d31/e d4/d31/e d4/f
|
o  10 add d3 files: d3/d31/e d3/f
|
o  9 copydirfrompast files: d2/d
|
o  8 copyfilefrompast files: d
|
o  7 moved1again files: d1/b d1/c
|
| o  6 moved1again files:
| |
o |  5 changeb and rm d2 files: d1/b d2/d
| |
| o  4 changeb and rm d2 files: b
| |
o |  3 moved2 files: d2/d
| |
o |  2 moved1 files: d1/b d1/c
| |
| o  1 moved1 files: b c
|
o  0 createtrunk files:

default                       11:
d1                             6: