comparison mercurial/interfaces/repository.py @ 50440:3a2df812e1c7

pull: add --remote-hidden option and pass it through peer creation This option will allow to pull changesets that are hidden on the remote. This is useful when looking into a changeset’s evolution history, resolving evolution instability or mirroring a repository. The option is best effort and will only affect the pull when it can. The option will be ignored when it cannot be honored. Support for each type of peer is yet to be implemented. They currently all warn about lack of support. The warning code will get removed as peers gain support for this option. The option is still experimental, so we will have freedom to update the UI or implementation before it graduates out of experimental. Based on a changeset by Pierre-Yves David, which added the option.
author Manuel Jacob <me@manueljacob.de>
date Thu, 04 Apr 2019 18:07:30 +0200
parents 6901916458bd
children 32837c7e2e4b
comparison
equal deleted inserted replaced
50439:4077d6222cf1 50440:3a2df812e1c7
386 class peer: 386 class peer:
387 """Base class for peer repositories.""" 387 """Base class for peer repositories."""
388 388
389 limitedarguments = False 389 limitedarguments = False
390 390
391 def __init__(self, ui, path=None): 391 def __init__(self, ui, path=None, remotehidden=False):
392 self.ui = ui 392 self.ui = ui
393 self.path = path 393 self.path = path
394 394
395 def capable(self, name): 395 def capable(self, name):
396 caps = self.capabilities() 396 caps = self.capabilities()