##// END OF EJS Templates
convert: fix a few residual bugs in darcs importer
Bryan O'Sullivan -
r5362:4ad2a18a default
parent child Browse files
Show More
@@ -58,7 +58,7 b' class darcs_source(converter_source):'
58
58
59 def after(self):
59 def after(self):
60 self.ui.debug('cleaning up %s\n' % self.tmppath)
60 self.ui.debug('cleaning up %s\n' % self.tmppath)
61 #shutil.rmtree(self.tmppath, ignore_errors=True)
61 shutil.rmtree(self.tmppath, ignore_errors=True)
62
62
63 def _run(self, cmd, *args, **kwargs):
63 def _run(self, cmd, *args, **kwargs):
64 cmdline = 'darcs %s --repodir=%r %s </dev/null' % (
64 cmdline = 'darcs %s --repodir=%r %s </dev/null' % (
@@ -74,8 +74,8 b' class darcs_source(converter_source):'
74 def checkexit(self, status, output=''):
74 def checkexit(self, status, output=''):
75 if status:
75 if status:
76 if output:
76 if output:
77 ui.warn(_('darcs error:\n'))
77 self.ui.warn(_('darcs error:\n'))
78 ui.warn(output)
78 self.ui.warn(output)
79 msg = util.explain_exit(status)[0]
79 msg = util.explain_exit(status)[0]
80 raise util.Abort(_('darcs %s') % msg)
80 raise util.Abort(_('darcs %s') % msg)
81
81
General Comments 0
You need to be logged in to leave comments. Login now