mirror of
https://github.com/facebook/sapling.git
synced 2024-10-12 01:39:21 +03:00
0dda4d7bae
Summary: Per team meeting, we want to remove whole changelog scans that are incompatible with the upcoming dag changes. Heads calculation is one of such "whole changelog scans". The plan is to use visibility heads + remote names to answer `head()`. However, remote names are not guarnateed to be heads. For example, `stable` might be an ancestor of `master`. To get the right answer about `head()`, some calculation like `heads(::(remotenames() + visible-heads()))` needs to be done. Calculating `heads(ancestors(...))` in Python is quite slow. This diff provides a native fast path for it. It still requires a partial changelog scan, but will be compatible with the future dag-based commit graph. Reviewed By: sfilipco Differential Revision: D17199841 fbshipit-source-id: 6ea4367b8877209899d56094f8d8ee1aff1ad6f3 |
||
---|---|---|
.. | ||
modules | ||
src | ||
Cargo.toml |