Mercurial > hg
comparison mercurial/unionrepo.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 | 90f047edab4f |
children | 18c8c18993f0 |
comparison
equal
deleted
inserted
replaced
50439:4077d6222cf1 | 50440:3a2df812e1c7 |
---|---|
268 self.repo2.close() | 268 self.repo2.close() |
269 | 269 |
270 def cancopy(self): | 270 def cancopy(self): |
271 return False | 271 return False |
272 | 272 |
273 def peer(self, path=None): | 273 def peer(self, path=None, remotehidden=False): |
274 return unionpeer(self, path=None) | 274 return unionpeer(self, path=None, remotehidden=remotehidden) |
275 | 275 |
276 def getcwd(self): | 276 def getcwd(self): |
277 return encoding.getcwd() # always outside the repo | 277 return encoding.getcwd() # always outside the repo |
278 | 278 |
279 | 279 |