Fix hg diff regression
authorandrea@suse.de
Thu, 22 Jun 2006 02:44:39 +0200
changeset 2482 818ebebc4554
parent 2481 5c65b4e51610
child 2483 5583d5ef257e
Fix hg diff regression
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):