##// END OF EJS Templates
largefiles: don't convert dest=None to dest=hg.defaultdest() in clone command...
Matt Harbison -
r17600:3a1c6b64 stable
parent child Browse files
Show More
@@ -720,12 +720,13 b' def overridepull(orig, ui, repo, source='
720 720 return result
721 721
722 722 def overrideclone(orig, ui, source, dest=None, **opts):
723 if dest is None:
724 dest = hg.defaultdest(source)
725 if opts.get('all_largefiles') and not hg.islocal(dest):
723 d = dest
724 if d is None:
725 d = hg.defaultdest(source)
726 if opts.get('all_largefiles') and not hg.islocal(d):
726 727 raise util.Abort(_(
727 728 '--all-largefiles is incompatible with non-local destination %s' %
728 dest))
729 d))
729 730 result = hg.clone(ui, opts, source, dest,
730 731 pull=opts.get('pull'),
731 732 stream=opts.get('uncompressed'),
@@ -707,6 +707,16 b' Test cloning with --all-largefiles flag'
707 707 commit: (clean)
708 708 update: 8 new changesets (update)
709 709
710 $ mkdir xyz
711 $ cd xyz
712 $ hg clone ../a
713 destination directory: a
714 updating to branch default
715 5 files updated, 0 files merged, 0 files removed, 0 files unresolved
716 getting changed largefiles
717 3 largefiles updated, 0 removed
718 $ cd ..
719
710 720 $ hg clone --all-largefiles a ssh://localhost/a
711 721 abort: --all-largefiles is incompatible with non-local destination ssh://localhost/a
712 722 [255]
General Comments 0
You need to be logged in to leave comments. Login now