convert: fix a few residual bugs in darcs importer
authorBryan O'Sullivan <bos@serpentine.com>
Tue, 02 Oct 2007 21:00:38 -0700
changeset 5362 4ad2a18aff42
parent 5359 6b6104430964
child 5363 9bdce4a7964c
convert: fix a few residual bugs in darcs importer
hgext/convert/darcs.py
--- a/hgext/convert/darcs.py	Tue Oct 02 13:49:11 2007 -0700
+++ b/hgext/convert/darcs.py	Tue Oct 02 21:00:38 2007 -0700
@@ -58,7 +58,7 @@
 
     def after(self):
         self.ui.debug('cleaning up %s\n' % self.tmppath)
-        #shutil.rmtree(self.tmppath, ignore_errors=True)
+        shutil.rmtree(self.tmppath, ignore_errors=True)
 
     def _run(self, cmd, *args, **kwargs):
         cmdline = 'darcs %s --repodir=%r %s </dev/null' % (
@@ -74,8 +74,8 @@
     def checkexit(self, status, output=''):
         if status:
             if output:
-                ui.warn(_('darcs error:\n'))
-                ui.warn(output)
+                self.ui.warn(_('darcs error:\n'))
+                self.ui.warn(output)
             msg = util.explain_exit(status)[0]
             raise util.Abort(_('darcs %s') % msg)