hgext/largefiles/overrides.py
changeset 51830 454feddab720
parent 51753 a1e4fa9330d8
parent 51794 187d7c859be7
child 51834 3b8d92f71d92
--- a/hgext/largefiles/overrides.py	Wed Aug 28 23:25:26 2024 +0200
+++ b/hgext/largefiles/overrides.py	Fri Sep 06 02:12:19 2024 +0200
@@ -49,6 +49,8 @@
     actions as upgrade_actions,
 )
 
+from mercurial.utils import urlutil
+
 from . import (
     lfcommands,
     lfutil,
@@ -1139,7 +1141,10 @@
     d = dest
     if d is None:
         d = hg.defaultdest(source)
-    if opts.get('all_largefiles') and not hg.islocal(d):
+    if opts.get('all_largefiles') and urlutil.url(d).scheme not in (
+        b'file',
+        None,
+    ):
         raise error.Abort(
             _(b'--all-largefiles is incompatible with non-local destination %s')
             % d