Show More
@@ -312,18 +312,12 b' class localpeer(repository.peer):' | |||||
312 | repo.ui, path=path, remotehidden=remotehidden |
|
312 | repo.ui, path=path, remotehidden=remotehidden | |
313 | ) |
|
313 | ) | |
314 |
|
314 | |||
315 | if remotehidden: |
|
|||
316 | msg = _( |
|
|||
317 | b"ignoring `--remote-hidden` request\n" |
|
|||
318 | b"(access to hidden changeset for %r not " |
|
|||
319 | b"supported yet)\n" |
|
|||
320 | ) % type(self) |
|
|||
321 | self.ui.warn(msg) |
|
|||
322 |
|
||||
323 | if caps is None: |
|
315 | if caps is None: | |
324 | caps = moderncaps.copy() |
|
316 | caps = moderncaps.copy() | |
|
317 | if remotehidden: | |||
|
318 | self._repo = repo.filtered(b'served.hidden') | |||
|
319 | else: | |||
325 | self._repo = repo.filtered(b'served') |
|
320 | self._repo = repo.filtered(b'served') | |
326 |
|
||||
327 | if repo._wanted_sidedata: |
|
321 | if repo._wanted_sidedata: | |
328 | formatted = bundle2.format_remote_wanted_sidedata(repo) |
|
322 | formatted = bundle2.format_remote_wanted_sidedata(repo) | |
329 | caps.add(b'exp-wanted-sidedata=' + formatted) |
|
323 | caps.add(b'exp-wanted-sidedata=' + formatted) |
General Comments 0
You need to be logged in to leave comments.
Login now