changeset 2482:818ebebc4554

Fix hg diff regression
author andrea@suse.de
date Thu, 22 Jun 2006 02:44:39 +0200
parents 5c65b4e51610
children 5583d5ef257e
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):