Commit f5dc4aa
Replace listkeys("bookmarks") in push path with SLAPI
Summary: Two push-path callers (`_pushdiscoverybookmarks` and `_nowarnheads`) fetch remote bookmarks via the wireproto `listkeys` command. Route them through SLAPI when the repo has it (so Mononoke pushes avoid wireproto `listkeys`), falling back to the push target via `listkeys` for repos without SLAPI (local/eager/ssh) where the call is in-process or non-Mononoke. This mirrors the existing `remotenames._listremotebookmarks` pull-path pattern. `_pushdiscoverybookmarks` needs remote bookmark state to compare against local bookmarks for push discovery, and `_nowarnheads` needs it to decide which heads are bookmarked and should not trigger new-head warnings.
Reviewed By: muirdm
Differential Revision: D104427541
fbshipit-source-id: 63de0889727ae45b405620edcb62658aa60c68bf1 parent 5b91436 commit f5dc4aa
5 files changed
Lines changed: 20 additions & 12 deletions
File tree
- eden
- mononoke/tests/integration/server
- scm
- sapling
- tests
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | 188 | | |
192 | 189 | | |
193 | 190 | | |
| |||
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | 98 | | |
102 | 99 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
169 | 186 | | |
170 | 187 | | |
171 | 188 | | |
172 | | - | |
173 | 189 | | |
174 | | - | |
| 190 | + | |
175 | 191 | | |
176 | 192 | | |
177 | 193 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
675 | 675 | | |
676 | 676 | | |
677 | 677 | | |
678 | | - | |
679 | 678 | | |
680 | 679 | | |
681 | 680 | | |
682 | 681 | | |
683 | 682 | | |
684 | | - | |
| 683 | + | |
685 | 684 | | |
686 | 685 | | |
687 | 686 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
| 57 | + | |
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
| |||
0 commit comments