mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 06:47:41 +03:00
eden: commitpending doesn't exist in ContentStore
Summary: Instead, it's present in the fileslog. Use that instead. This is the error I just got while doing a `hg top`: error updating fbcode/eden/scm/lib/revisionstore/src/contentstore.rs: facebook::eden::HgImportPyError: AttributeError: 'bindings.revisionstore.contentstore' object has no attribute 'commitpending' Reviewed By: quark-zju Differential Revision: D20715560 fbshipit-source-id: 59c4b62ae8d0f182824e126e68b174c0ef3cdba0
This commit is contained in:
parent
fd72344578
commit
2c052d055d
@ -717,9 +717,9 @@ class HgServer(object):
|
||||
raise ResetRepoError(e)
|
||||
|
||||
if self.repo.fileslog._ruststore:
|
||||
# Committing the contentstore will force it to be rebuilt,
|
||||
# effectively refreshing the store.
|
||||
self.repo.fileslog.contentstore.commitpending()
|
||||
# Committing the fileslog will force the contentstore to be
|
||||
# rebuilt, effectively refreshing the store.
|
||||
self.repo.fileslog.commitpending()
|
||||
else:
|
||||
self.repo.fileslog.contentstore.markforrefresh()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user