sapling/eden
Jun Wu 7508e2f81f dag: fix filter set's contains implementation
Summary:
The "filter" set's filter function might not be prepared for inputs outside
the parent set. So let's the "contains" function to test against the parent
set first, then test the filter function.

This fixes the "merge()" set's "contains" check using the revlog backend:

  In [1]: v=repo.revs('draft() & merge()')

  In [2]: v._set
  Out[2]: <meta ?>

  In [3]: m.node.nullid in v._set
  Out[3]: False

Before this diff it would be:

  In [3]: m.node.nullid in v._set
  CommitLookupError: '0000000000000000000000000000000000000000 cannot be found'

Note: Segmented changelog backend is not affected because it does not use
filter sets.

Reviewed By: xavierd

Differential Revision: D27657502

fbshipit-source-id: 30bb261fea59bdc5644580e98796f52fa93c2705
2021-04-08 12:25:51 -07:00
..
fs add --prefetch-metadata flag to prefetch profiles CLI 2021-04-07 09:17:11 -07:00
integration log session id on startup 2021-04-02 11:36:13 -07:00
locale
mononoke third-party/rust: patch curl and curl-sys 2021-04-08 11:50:38 -07:00
scm dag: fix filter set's contains implementation 2021-04-08 12:25:51 -07:00
test_support Manually upgrading eden, and fixing their config 2020-08-06 12:37:04 -07:00
test-data
.gitignore
Eden.project.toml