mercurial/localrepo.py
changeset 25667 a69bb29b9638
parent 25660 328739ea70c3
child 25764 22049b565d57
equal deleted inserted replaced
25666:1c7e62360068 25667:a69bb29b9638
   291 
   291 
   292         self.store = store.store(
   292         self.store = store.store(
   293                 self.requirements, self.sharedpath, scmutil.vfs)
   293                 self.requirements, self.sharedpath, scmutil.vfs)
   294         self.spath = self.store.path
   294         self.spath = self.store.path
   295         self.svfs = self.store.vfs
   295         self.svfs = self.store.vfs
   296         self.sopener = self.svfs
       
   297         self.sjoin = self.store.join
   296         self.sjoin = self.store.join
   298         self.vfs.createmode = self.store.createmode
   297         self.vfs.createmode = self.store.createmode
   299         self._applyopenerreqs()
   298         self._applyopenerreqs()
   300         if create:
   299         if create:
   301             self._writerequirements()
   300             self._writerequirements()
   981             """will run pre-closing hooks"""
   980             """will run pre-closing hooks"""
   982             pending = lambda: tr.writepending() and self.root or ""
   981             pending = lambda: tr.writepending() and self.root or ""
   983             reporef().hook('pretxnclose', throw=True, pending=pending,
   982             reporef().hook('pretxnclose', throw=True, pending=pending,
   984                            txnname=desc, **tr.hookargs)
   983                            txnname=desc, **tr.hookargs)
   985 
   984 
   986         tr = transaction.transaction(rp, self.sopener, vfsmap,
   985         tr = transaction.transaction(rp, self.svfs, vfsmap,
   987                                      "journal",
   986                                      "journal",
   988                                      "undo",
   987                                      "undo",
   989                                      aftertrans(renames),
   988                                      aftertrans(renames),
   990                                      self.store.createmode,
   989                                      self.store.createmode,
   991                                      validator=validate)
   990                                      validator=validate)