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 |
|
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` |
General Comments 0
You need to be logged in to leave comments.
Login now