diff -r 5c65b4e51610 -r 818ebebc4554 mercurial/commands.py --- a/mercurial/commands.py Wed Jun 21 17:55:11 2006 -0700 +++ b/mercurial/commands.py Thu Jun 22 02:44:39 2006 +0200 @@ -390,7 +390,7 @@ def date2(f): try: return util.datestr((os.lstat(repo.wjoin(f)).st_mtime, tz)) - except IOError, err: + except OSError, err: if err.errno != errno.ENOENT: raise return _date2 def read(f):