##// END OF EJS Templates
inotify: fix issue1375, add a test....
Nicolas Dumazet -
r9116:f90bbf1e default
parent child Browse files
Show More
@@ -89,7 +89,11 b' def walk(repo, root):'
89 yield fullpath, dirs, files
89 yield fullpath, dirs, files
90
90
91 except OSError, err:
91 except OSError, err:
92 if err.errno not in walk_ignored_errors:
92 if err.errno == errno.ENOTDIR:
93 # fullpath was a directory, but has since been replaced
94 # by a file.
95 yield fullpath, dirs, files
96 elif err.errno not in walk_ignored_errors:
93 raise
97 raise
94
98
95 return walkit(root, root == '')
99 return walkit(root, root == '')
@@ -35,4 +35,19 b' cd dir'
35 hg status .
35 hg status .
36 cd ..
36 cd ..
37
37
38 #issue 1375
39 #Testing that we can remove a folder and then add a file with the same name
40 echo % issue 1375
41
42 mkdir h
43 echo h > h/h
44 hg ci -Am t
45 hg rm h
46
47 echo h >h
48 hg add h
49
50 hg status
51 hg ci -m0
52
38 kill `cat hg.pid`
53 kill `cat hg.pid`
@@ -32,3 +32,9 b' M dir/x'
32 ? hg.pid
32 ? hg.pid
33 M dir/x
33 M dir/x
34 M x
34 M x
35 % issue 1375
36 adding h/h
37 adding hg.pid
38 removing h/h
39 A h
40 R h/h
General Comments 0
You need to be logged in to leave comments. Login now