comparison mercurial/hg.py @ 49701:1470a533d28a

path: directly use the push_variant in outgoing internals We don't need any extra processing now.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 01 Dec 2022 01:37:10 +0100
parents c4731eee1c8f
children aa36771ef505
comparison
equal deleted inserted replaced
49700:e3b997f57269 49701:1470a533d28a
1378 1378
1379 def _outgoing(ui, repo, dests, opts, subpath=None): 1379 def _outgoing(ui, repo, dests, opts, subpath=None):
1380 out = set() 1380 out = set()
1381 others = [] 1381 others = []
1382 for path in urlutil.get_push_paths(repo, ui, dests): 1382 for path in urlutil.get_push_paths(repo, ui, dests):
1383 dest = path.pushloc or path.loc 1383 dest = path.loc
1384 if subpath is not None: 1384 if subpath is not None:
1385 subpath = urlutil.url(subpath) 1385 subpath = urlutil.url(subpath)
1386 if subpath.isabs(): 1386 if subpath.isabs():
1387 dest = bytes(subpath) 1387 dest = bytes(subpath)
1388 else: 1388 else: