Show More
@@ -2240,6 +2240,12 b' def forget(ui, repo, match, prefix, expl' | |||
|
2240 | 2240 | if f not in repo.dirstate and not repo.wvfs.isdir(f): |
|
2241 | 2241 | if f not in forgot: |
|
2242 | 2242 | if repo.wvfs.exists(f): |
|
2243 | # Don't complain if the exact case match wasn't given. | |
|
2244 | # But don't do this until after checking 'forgot', so | |
|
2245 | # that subrepo files aren't normalized, and this op is | |
|
2246 | # purely from data cached by the status walk above. | |
|
2247 | if repo.dirstate.normalize(f) in repo.dirstate: | |
|
2248 | continue | |
|
2243 | 2249 | ui.warn(_('not removing %s: ' |
|
2244 | 2250 | 'file is already untracked\n') |
|
2245 | 2251 | % match.rel(f)) |
@@ -179,6 +179,9 b" Test that adding a directory doesn't req" | |||
|
179 | 179 | $ hg add -v capsdir1/capsdir |
|
180 | 180 | adding CapsDir1/CapsDir/AbC.txt (glob) |
|
181 | 181 | adding CapsDir1/CapsDir/SubDir/Def.txt (glob) |
|
182 | ||
|
183 | $ hg forget capsdir1/capsdir/abc.txt | |
|
184 | removing CapsDir1/CapsDir/AbC.txt (glob) | |
|
182 | 185 | #endif |
|
183 | 186 | |
|
184 | 187 | $ cd .. |
General Comments 0
You need to be logged in to leave comments.
Login now