##// END OF EJS Templates
remove: use vfs instead of os.path + match.rel() for filesystem checks
Matt Harbison -
r23674:6e36b9fc default
parent child Browse files
Show More
@@ -2092,8 +2092,8 b' def remove(ui, repo, m, prefix, after, f'
2092 if f in repo.dirstate or f in wctx.dirs() or f == '.' or insubrepo():
2092 if f in repo.dirstate or f in wctx.dirs() or f == '.' or insubrepo():
2093 continue
2093 continue
2094
2094
2095 if os.path.exists(m.rel(join(f))):
2095 if repo.wvfs.exists(f):
2096 if os.path.isdir(m.rel(join(f))):
2096 if repo.wvfs.isdir(f):
2097 ui.warn(_('not removing %s: no tracked files\n')
2097 ui.warn(_('not removing %s: no tracked files\n')
2098 % m.rel(join(f)))
2098 % m.rel(join(f)))
2099 else:
2099 else:
General Comments 0
You need to be logged in to leave comments. Login now