mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
eden: commit the Rust ContentStore when unable to find a blob
Summary: The markforrefresh only exist in the legacy Python contentstore, commiting the current store will have the same effect for the Rust store. Reviewed By: DurhamG Differential Revision: D20562032 fbshipit-source-id: de12cfd65d992395c9b9894d1f05cf50d86b0191
This commit is contained in:
parent
674e9c7900
commit
730327c29e
@ -716,7 +716,12 @@ class HgServer(object):
|
||||
# does not have a contentstore. So fail immediately
|
||||
raise ResetRepoError(e)
|
||||
|
||||
self.repo.fileslog.contentstore.markforrefresh()
|
||||
if self.repo.fileslog._ruststore:
|
||||
# Committing the contentstore will force it to be rebuilt,
|
||||
# effectively refreshing the store.
|
||||
self.repo.fileslog.contentstore.commitpending()
|
||||
else:
|
||||
self.repo.fileslog.contentstore.markforrefresh()
|
||||
|
||||
try:
|
||||
return attr_of(fctx)
|
||||
|
Loading…
Reference in New Issue
Block a user