mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
hg: add mutable stores to union stores
Summary: Adds the mutable stores to the union store when they are created. This will allow reads to access data that has been written but not finalized. This will be important in later patches for converting a series of trees as part of a single transaction. Differential Revision: D7083031 fbshipit-source-id: 25ddbb1dbd29ad6b4164733b6d893b9c69d9d65e
This commit is contained in:
parent
0cb760c0ea
commit
b67bf97b08
@ -443,6 +443,8 @@ class basetreemanifestlog(object):
|
||||
'manifests')
|
||||
self._mutabledatapack = mutabledatapack(ui, packpath)
|
||||
self._mutablehistorypack = mutablehistorypack(ui, packpath)
|
||||
self.datastore.addstore(self._mutabledatapack)
|
||||
self.historystore.addstore(self._mutablehistorypack)
|
||||
|
||||
newtreeiter = newtree.finalize(p1tree)
|
||||
|
||||
@ -472,6 +474,8 @@ class basetreemanifestlog(object):
|
||||
|
||||
dpack.close()
|
||||
hpack.close()
|
||||
self.datastore.removestore(dpack)
|
||||
self.historystore.removestore(hpack)
|
||||
|
||||
self._mutabledatapack = None
|
||||
self._mutablehistorypack = None
|
||||
@ -486,6 +490,8 @@ class basetreemanifestlog(object):
|
||||
|
||||
dpack.abort()
|
||||
hpack.abort()
|
||||
self.datastore.removestore(dpack)
|
||||
self.historystore.removestore(hpack)
|
||||
|
||||
self._mutabledatapack = None
|
||||
self._mutablehistorypack = None
|
||||
|
Loading…
Reference in New Issue
Block a user