# HG changeset patch # User Sylvain Thénault # Date 1270025803 -7200 # Node ID 60a237638f574b9f72ce6b1cb3142747ccfa95b9 # Parent e25979a6d795e6e3c1105dfaa9750ab81978ad6e [dataimport] print transaction id when we get one diff -r e25979a6d795 -r 60a237638f57 dataimport.py --- a/dataimport.py Wed Mar 31 09:58:44 2010 +0200 +++ b/dataimport.py Wed Mar 31 10:56:43 2010 +0200 @@ -498,7 +498,7 @@ err = func(buckets) if err: self.errors[title] = (help, err) - self.store.commit() + txuuid = self.store.commit() self._print_stats() if self.errors: if self.askerror == 2 or (self.askerror and confirm('Display errors ?')): @@ -506,7 +506,8 @@ for errkey, error in self.errors.items(): self.tell("\n%s (%s): %d\n" % (error[0], errkey, len(error[1]))) self.tell(pformat(sorted(error[1]))) - + if txuuid is not None: + print 'transaction id:', txuuid def _print_stats(self): nberrors = sum(len(err[1]) for err in self.errors.values()) self.tell('\nImport statistics: %i entities, %i types, %i relations and %i errors'