Page MenuHomePhabricator

D21747.diff
No OneTemporary

D21747.diff

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
@@ -39,12 +39,17 @@
command = cmdutil.command(cmdtable)
try:
- if "remoteopts" in cmdutil:
- remoteopts = cmdutil.remoteopts
+ remoteopts = cmdutil.remoteopts
except:
from mercurial import commands
remoteopts = commands.remoteopts
+try:
+ parseurl = hg.parseurl
+except:
+ from mercurial import utils
+ parseurl = utils.urlutil.parseurl
+
@command(
b'arc-amend',
[
@@ -268,7 +273,7 @@
markers = []
- source, branches = hg.parseurl(ui.expandpath(source))
+ source, branches = parseurl(ui.expandpath(source))
remote = hg.peer(repo, opts, source)
with remote.commandexecutor() as e:

File Metadata

Mime Type
text/plain
Expires
Sun, Dec 22, 11:57 AM (10 h, 1 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6918205
Default Alt Text
D21747.diff (739 B)

Event Timeline