comparison hgext/largefiles/overrides.py @ 16723:68da5ae6e470

largefiles: don't attempt to clone all largefiles to non-local destinations
author Levi Bard <levi@unity3d.com>
date Sun, 13 May 2012 22:59:22 +0200
parents b9969574540a
children 46c15dff3497
comparison
equal deleted inserted replaced
16721:3e6d59ae4dc2 16723:68da5ae6e470
702 revs.append(repo[rev].rev()) 702 revs.append(repo[rev].rev())
703 lfcommands.downloadlfiles(ui, repo, revs) 703 lfcommands.downloadlfiles(ui, repo, revs)
704 return result 704 return result
705 705
706 def overrideclone(orig, ui, source, dest=None, **opts): 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 result = hg.clone(ui, opts, source, dest, 713 result = hg.clone(ui, opts, source, dest,
708 pull=opts.get('pull'), 714 pull=opts.get('pull'),
709 stream=opts.get('uncompressed'), 715 stream=opts.get('uncompressed'),
710 rev=opts.get('rev'), 716 rev=opts.get('rev'),
711 update=True, # required for successful walkchangerevs 717 update=True, # required for successful walkchangerevs