mercurial/localrepo.py
branchstable
changeset 25268 a973b050621d
parent 25267 69c5cab0b893
child 25270 61b3529e2377
equal deleted inserted replaced
25267:69c5cab0b893 25268:a973b050621d
   960                 _("abandoned transaction found"),
   960                 _("abandoned transaction found"),
   961                 hint=_("run 'hg recover' to clean up transaction"))
   961                 hint=_("run 'hg recover' to clean up transaction"))
   962 
   962 
   963         idbase = "%.40f#%f" % (random.random(), time.time())
   963         idbase = "%.40f#%f" % (random.random(), time.time())
   964         txnid = 'TXN:' + util.sha1(idbase).hexdigest()
   964         txnid = 'TXN:' + util.sha1(idbase).hexdigest()
   965         self.hook('pretxnopen', throw=True, txnname=desc)
   965         self.hook('pretxnopen', throw=True, txnname=desc, txnid=txnid)
   966 
   966 
   967         self._writejournal(desc)
   967         self._writejournal(desc)
   968         renames = [(vfs, x, undoname(x)) for vfs, x in self._journalfiles()]
   968         renames = [(vfs, x, undoname(x)) for vfs, x in self._journalfiles()]
   969         if report:
   969         if report:
   970             rp = report
   970             rp = report