Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15379506
D21859.id52100.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D21859.id52100.diff
View Options
diff --git a/support/hg/arc-hg.py b/support/hg/arc-hg.py
--- a/support/hg/arc-hg.py
+++ b/support/hg/arc-hg.py
@@ -273,8 +273,21 @@
markers = []
- source, branches = parseurl(ui.expandpath(source))
- remote = hg.peer(repo, opts, source)
+ # Determine the remote to use based on the default path configured in
+ # [ui.paths] for this local repository.
+ #
+ # The expandpath function in the ui module was deprecated in 5.8 and removed
+ # in 6.4. NOTE: There is also an expandpath function in mercurial.util (not
+ # plural mercurial.utils...) however that function behaves differently from
+ # the old ui.expandpath. Reviewing the source comments for the old
+ # ui.expandpath function points to using urilutils.get_ functions.
+ try:
+ remote_path, branches = parseurl(ui.expandpath(source))
+ except:
+ from mercurial import utils
+ origsource, remote_path, branch = utils.urlutil.get_clone_path(ui, source)
+
+ remote = hg.peer(repo, opts, remote_path)
with remote.commandexecutor() as e:
branchmap = e.callcommand(b'branchmap', {}).result()
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 14, 9:36 PM (4 d, 42 m ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7451944
Default Alt Text
D21859.id52100.diff (1 KB)
Attached To
Mode
D21859: Update the arc-hg.py extension to work with mercurial 6.4
Attached
Detach File
Event Timeline
Log In to Comment