662 if not opts['force'] and os.path.exists(destlfile): |
662 if not opts['force'] and os.path.exists(destlfile): |
663 raise IOError('', |
663 raise IOError('', |
664 _('destination largefile already exists')) |
664 _('destination largefile already exists')) |
665 copiedfiles.append((src, dest)) |
665 copiedfiles.append((src, dest)) |
666 orig(src, dest, *args, **kwargs) |
666 orig(src, dest, *args, **kwargs) |
667 with extensions.wrappedfunction(util, 'copyfile', overridecopyfile), \ |
667 with extensions.wrappedfunction(util, 'copyfile', overridecopyfile): |
668 extensions.wrappedfunction(scmutil, 'match', overridematch): |
668 with extensions.wrappedfunction(scmutil, 'match', overridematch): |
669 result += orig(ui, repo, listpats, opts, rename) |
669 result += orig(ui, repo, listpats, opts, rename) |
670 |
670 |
671 lfdirstate = lfutil.openlfdirstate(ui, repo) |
671 lfdirstate = lfutil.openlfdirstate(ui, repo) |
672 for (src, dest) in copiedfiles: |
672 for (src, dest) in copiedfiles: |
673 if (lfutil.shortname in src and |
673 if (lfutil.shortname in src and |
674 dest.startswith(repo.wjoin(lfutil.shortname))): |
674 dest.startswith(repo.wjoin(lfutil.shortname))): |