Mercurial > public > mercurial-scm > hg-stable
diff 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 |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Wed Dec 24 12:07:59 2014 -0500 +++ b/mercurial/cmdutil.py Thu Dec 25 21:43:45 2014 -0500 @@ -2037,9 +2037,9 @@ if not explicitonly: for f in match.files(): - if f not in repo.dirstate and not os.path.isdir(match.rel(join(f))): + if f not in repo.dirstate and not repo.wvfs.isdir(f): if f not in forgot: - if os.path.exists(match.rel(join(f))): + if repo.wvfs.exists(f): ui.warn(_('not removing %s: ' 'file is already untracked\n') % match.rel(join(f)))