diff -r aa36771ef505 -r 0df2cff04291 mercurial/commands.py --- a/mercurial/commands.py Wed Nov 30 19:43:26 2022 +0100 +++ b/mercurial/commands.py Thu Dec 01 01:57:14 2022 +0100 @@ -1635,7 +1635,7 @@ missing = set() excluded = set() for path in urlutil.get_push_paths(repo, ui, dests): - other = hg.peer(repo, opts, path.rawloc) + other = hg.peer(repo, opts, path) if revs is not None: hex_revs = [repo[r].hex() for r in revs] else: