comparison mercurial/cmdutil.py @ 23674:6e36b9fc7869

remove: use vfs instead of os.path + match.rel() for filesystem checks
author Matt Harbison <matt_harbison@yahoo.com>
date Thu, 25 Dec 2014 21:50:35 -0500
parents 69cd91d04117
children 164915e8ef7b
comparison
equal deleted inserted replaced
23673:69cd91d04117 23674:6e36b9fc7869
2090 return False 2090 return False
2091 2091
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:
2100 ui.warn(_('not removing %s: file is untracked\n') 2100 ui.warn(_('not removing %s: file is untracked\n')
2101 % m.rel(join(f))) 2101 % m.rel(join(f)))