Mercurial > hg
comparison hgext/largefiles/overrides.py @ 16729:46c15dff3497
largefiles: fix default clone destination regression
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 16 May 2012 11:40:33 -0500 |
parents | 68da5ae6e470 |
children | dcfc70aab372 |
comparison
equal
deleted
inserted
replaced
16728:99f369f5a8db | 16729:46c15dff3497 |
---|---|
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: | 707 if dest is None: |
708 dest = defaultdest(source) | 708 dest = hg.defaultdest(source) |
709 if opts.get('all_largefiles') and not hg.islocal(dest): | 709 if opts.get('all_largefiles') and not hg.islocal(dest): |
710 raise util.Abort(_( | 710 raise util.Abort(_( |
711 '--all-largefiles is incompatible with non-local destination %s' % | 711 '--all-largefiles is incompatible with non-local destination %s' % |
712 dest)) | 712 dest)) |
713 result = hg.clone(ui, opts, source, dest, | 713 result = hg.clone(ui, opts, source, dest, |