##// END OF EJS Templates
push-dests: rework the handling of default value...
marmoute -
r47678:7061eee8 default
parent child Browse files
Show More
@@ -448,9 +448,15 b' def removeauth(u):'
448 def get_push_paths(repo, ui, dests):
448 def get_push_paths(repo, ui, dests):
449 """yields all the `path` selected as push destination by `dests`"""
449 """yields all the `path` selected as push destination by `dests`"""
450 if not dests:
450 if not dests:
451 dests = [None]
451 if b'default-push' in ui.paths:
452 for dest in dests:
452 yield ui.paths[b'default-push']
453 yield ui.getpath(dest, default=(b'default-push', b'default'))
453 elif b'default' in ui.paths:
454 yield ui.paths[b'default']
455 else:
456 yield None
457 else:
458 for dest in dests:
459 yield ui.getpath(dest)
454
460
455
461
456 def get_pull_paths(repo, ui, sources, default_branches=()):
462 def get_pull_paths(repo, ui, sources, default_branches=()):
General Comments 0
You need to be logged in to leave comments. Login now