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:
Xavier Deguillard 2020-03-30 09:00:51 -07:00 committed by Facebook GitHub Bot
parent fd72344578
commit 2c052d055d

View File

@ -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()