##// END OF EJS Templates
debugbackupbundle: use `get_unique_pull_path`...
marmoute -
r47723:d7b36a4e default
parent child Browse files
Show More
@@ -3765,8 +3765,14 b' def debugbackupbundle(ui, repo, *pats, *'
3765
3765
3766 for backup in backups:
3766 for backup in backups:
3767 # Much of this is copied from the hg incoming logic
3767 # Much of this is copied from the hg incoming logic
3768 source = ui.expandpath(os.path.relpath(backup, encoding.getcwd()))
3768 source = os.path.relpath(backup, encoding.getcwd())
3769 source, branches = urlutil.parseurl(source, opts.get(b"branch"))
3769 source, branches = urlutil.get_unique_pull_path(
3770 b'debugbackupbundle',
3771 repo,
3772 ui,
3773 source,
3774 default_branches=opts.get(b'branch'),
3775 )
3770 try:
3776 try:
3771 other = hg.peer(repo, opts, source)
3777 other = hg.peer(repo, opts, source)
3772 except error.LookupError as ex:
3778 except error.LookupError as ex:
General Comments 0
You need to be logged in to leave comments. Login now