--- a/hgext/largefiles/overrides.py Sun Sep 09 03:37:38 2012 -0400
+++ b/hgext/largefiles/overrides.py Sun Sep 09 12:09:53 2012 -0400
@@ -720,12 +720,13 @@
return result
def overrideclone(orig, ui, source, dest=None, **opts):
- if dest is None:
- dest = hg.defaultdest(source)
- if opts.get('all_largefiles') and not hg.islocal(dest):
+ d = dest
+ if d is None:
+ d = hg.defaultdest(source)
+ if opts.get('all_largefiles') and not hg.islocal(d):
raise util.Abort(_(
'--all-largefiles is incompatible with non-local destination %s' %
- dest))
+ d))
result = hg.clone(ui, opts, source, dest,
pull=opts.get('pull'),
stream=opts.get('uncompressed'),