hgext/largefiles/overrides.py
changeset 16723 68da5ae6e470
parent 16692 b9969574540a
child 16729 46c15dff3497
--- a/hgext/largefiles/overrides.py	Sun May 13 14:04:07 2012 +0200
+++ b/hgext/largefiles/overrides.py	Sun May 13 22:59:22 2012 +0200
@@ -704,6 +704,12 @@
     return result
 
 def overrideclone(orig, ui, source, dest=None, **opts):
+    if dest is None:
+        dest = defaultdest(source)
+    if opts.get('all_largefiles') and not hg.islocal(dest):
+            raise util.Abort(_(
+            '--all-largefiles is incompatible with non-local destination %s' %
+            dest))
     result = hg.clone(ui, opts, source, dest,
                       pull=opts.get('pull'),
                       stream=opts.get('uncompressed'),