comparison hgext/largefiles/overrides.py @ 17600:3a1c6b64e052 stable

largefiles: don't convert dest=None to dest=hg.defaultdest() in clone command A status message is output if hg.clone() determines the default destination because None was provided. The previous code never passed None to hg.clone().
author Matt Harbison <matt_harbison@yahoo.com>
date Sun, 09 Sep 2012 12:09:53 -0400
parents 56136786000f
children 6e2ab601be3f
comparison
equal deleted inserted replaced
17599:56136786000f 17600:3a1c6b64e052
718 revs.append(repo[rev].rev()) 718 revs.append(repo[rev].rev())
719 lfcommands.downloadlfiles(ui, repo, revs) 719 lfcommands.downloadlfiles(ui, repo, revs)
720 return result 720 return result
721 721
722 def overrideclone(orig, ui, source, dest=None, **opts): 722 def overrideclone(orig, ui, source, dest=None, **opts):
723 if dest is None: 723 d = dest
724 dest = hg.defaultdest(source) 724 if d is None:
725 if opts.get('all_largefiles') and not hg.islocal(dest): 725 d = hg.defaultdest(source)
726 if opts.get('all_largefiles') and not hg.islocal(d):
726 raise util.Abort(_( 727 raise util.Abort(_(
727 '--all-largefiles is incompatible with non-local destination %s' % 728 '--all-largefiles is incompatible with non-local destination %s' %
728 dest)) 729 d))
729 result = hg.clone(ui, opts, source, dest, 730 result = hg.clone(ui, opts, source, dest,
730 pull=opts.get('pull'), 731 pull=opts.get('pull'),
731 stream=opts.get('uncompressed'), 732 stream=opts.get('uncompressed'),
732 rev=opts.get('rev'), 733 rev=opts.get('rev'),
733 update=opts.get('updaterev') or not opts.get('noupdate'), 734 update=opts.get('updaterev') or not opts.get('noupdate'),