convert: fix missing import
authorPatrick Mezard <pmezard@gmail.com>
Sun, 30 Sep 2007 12:08:33 +0200
changeset 5344 002fe2f364f5
parent 5343 26692d08c2f9
child 5345 9f35d0bcf00e
convert: fix missing import
hgext/convert/hg.py
--- a/hgext/convert/hg.py	Sat Sep 29 21:08:14 2007 -0700
+++ b/hgext/convert/hg.py	Sun Sep 30 12:08:33 2007 +0200
@@ -1,7 +1,7 @@
 # hg backend for convert extension
 
 import os, time
-from mercurial import hg
+from mercurial import hg, util
 
 from common import NoRepo, converter_sink
 
@@ -33,7 +33,7 @@
         try:
             util.unlink(self.repo.wjoin(f))
             #self.repo.remove([f])
-        except:
+        except OSError:
             pass
 
     def putcommit(self, files, parents, commit):