Mercurial > public > mercurial-scm > hg
diff mercurial/cmdutil.py @ 12032:ad787252fed6
util: remove lexists, Python 2.4 introduced os.path.lexists
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Wed, 25 Aug 2010 16:23:32 +0200 |
parents | 60bfb876dc45 |
children | 6f833fc3ccab |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Wed Aug 25 13:40:46 2010 +0200 +++ b/mercurial/cmdutil.py Wed Aug 25 16:23:32 2010 +0200 @@ -297,7 +297,7 @@ unknown.append(abs) if repo.ui.verbose or not exact: repo.ui.status(_('adding %s\n') % ((pats and rel) or abs)) - elif repo.dirstate[abs] != 'r' and (not good or not util.lexists(target) + elif repo.dirstate[abs] != 'r' and (not good or not os.path.lexists(target) or (os.path.isdir(target) and not os.path.islink(target))): deleted.append(abs) if repo.ui.verbose or not exact: