mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
4be4e90187
Summary: This will reduce max potential number of fetching bookmarks from O(len(longest stack)) to O(1) (with is 0 or 1) if there are draft commits. Previously, the refetching could happen on every iteration while we are searching for public roots. This diff allows us to reuse the bookmarks from the first time they were needed and has been fetched in the whole phases calculation process. Fetch just once! If there are no draft commits bookmarks were fetched only once already (and only if needed). Reviewed By: StanislavGlebik Differential Revision: D13753520 fbshipit-source-id: d96a6cf434cb4a1fe95e51ae734afb1671124336 |
||
---|---|---|
.. | ||
schemas | ||
src |