[Commented On] D10438: urlutil: inline the relevant part of `getpath` in `get_push_paths`
baymax (Baymax, Your Personal Patch-care Companion)
phabricator at mercurial-scm.org
Sat Apr 17 23:40:04 UTC 2021
baymax added a comment.
baymax updated this revision to Diff 27007.
✅ refresh by Heptapod after a successful CI run (🐙 💚)
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D10438?vs=26947&id=27007
BRANCH
default
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D10438/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D10438
AFFECTED FILES
mercurial/utils/urlutil.py
CHANGE DETAILS
diff --git a/mercurial/utils/urlutil.py b/mercurial/utils/urlutil.py
--- a/mercurial/utils/urlutil.py
+++ b/mercurial/utils/urlutil.py
@@ -471,7 +471,15 @@
)
else:
for dest in dests:
- yield ui.getpath(dest)
+ if dest in ui.paths:
+ yield ui.paths[dest]
+ else:
+ path = try_path(ui, dest)
+ if path is None:
+ msg = _(b'repository %s does not exist')
+ msg %= dest
+ raise error.RepoError(msg)
+ yield path
def get_pull_paths(repo, ui, sources, default_branches=()):
To: marmoute, #hg-reviewers
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210417/8503788d/attachment-0002.html>
More information about the Mercurial-patches
mailing list