##// END OF EJS Templates
remove: avoid a bogus warning about no tracked files when removing '.'...
Matt Harbison -
r23327:bd296bb4 default
parent child Browse files
Show More
@@ -2088,7 +2088,7 b' def remove(ui, repo, m, prefix, after, f'
2088 return True
2088 return True
2089 return False
2089 return False
2090
2090
2091 if f in repo.dirstate or f in wctx.dirs() or insubrepo():
2091 if f in repo.dirstate or f in wctx.dirs() or f == '.' or insubrepo():
2092 continue
2092 continue
2093
2093
2094 if os.path.exists(m.rel(join(f))):
2094 if os.path.exists(m.rel(join(f))):
@@ -113,7 +113,7 b' Check that deep archiving works'
113
113
114 .. but first take a detour through some deep removal testing
114 .. but first take a detour through some deep removal testing
115
115
116 $ hg remove -S -I 're:.*.txt' sub1
116 $ hg remove -S -I 're:.*.txt' .
117 removing sub1/sub2/folder/test.txt (glob)
117 removing sub1/sub2/folder/test.txt (glob)
118 removing sub1/sub2/test.txt (glob)
118 removing sub1/sub2/test.txt (glob)
119 $ hg status -S
119 $ hg status -S
General Comments 0
You need to be logged in to leave comments. Login now