Show More
@@ -704,6 +704,12 b' def overridepull(orig, ui, repo, source=' | |||
|
704 | 704 | return result |
|
705 | 705 | |
|
706 | 706 | def overrideclone(orig, ui, source, dest=None, **opts): |
|
707 | if dest is None: | |
|
708 | dest = defaultdest(source) | |
|
709 | if opts.get('all_largefiles') and not hg.islocal(dest): | |
|
710 | raise util.Abort(_( | |
|
711 | '--all-largefiles is incompatible with non-local destination %s' % | |
|
712 | dest)) | |
|
707 | 713 | result = hg.clone(ui, opts, source, dest, |
|
708 | 714 | pull=opts.get('pull'), |
|
709 | 715 | stream=opts.get('uncompressed'), |
@@ -444,6 +444,10 b' Test cloning with --all-largefiles flag' | |||
|
444 | 444 | 3 largefiles updated, 0 removed |
|
445 | 445 | 8 additional largefiles cached |
|
446 | 446 | |
|
447 | $ hg clone --all-largefiles a ssh://localhost/a | |
|
448 | abort: --all-largefiles is incompatible with non-local destination ssh://localhost/a | |
|
449 | [255] | |
|
450 | ||
|
447 | 451 | Test pulling with --all-largefiles flag |
|
448 | 452 | |
|
449 | 453 | $ rm -Rf a-backup |
General Comments 0
You need to be logged in to leave comments.
Login now