comparison mercurial/cmdutil.py @ 23673:69cd91d04117

forget: use vfs instead of os.path + match.rel() for filesystem checks
author Matt Harbison <matt_harbison@yahoo.com>
date Thu, 25 Dec 2014 21:43:45 -0500
parents e1c39f207719
children 6e36b9fc7869
comparison
equal deleted inserted replaced
23672:7853e8603f4a 23673:69cd91d04117
2035 ui.status(_("skipping missing subrepository: %s\n") 2035 ui.status(_("skipping missing subrepository: %s\n")
2036 % join(subpath)) 2036 % join(subpath))
2037 2037
2038 if not explicitonly: 2038 if not explicitonly:
2039 for f in match.files(): 2039 for f in match.files():
2040 if f not in repo.dirstate and not os.path.isdir(match.rel(join(f))): 2040 if f not in repo.dirstate and not repo.wvfs.isdir(f):
2041 if f not in forgot: 2041 if f not in forgot:
2042 if os.path.exists(match.rel(join(f))): 2042 if repo.wvfs.exists(f):
2043 ui.warn(_('not removing %s: ' 2043 ui.warn(_('not removing %s: '
2044 'file is already untracked\n') 2044 'file is already untracked\n')
2045 % match.rel(join(f))) 2045 % match.rel(join(f)))
2046 bad.append(f) 2046 bad.append(f)
2047 2047