Show More
@@ -686,10 +686,8 b' def overridecopy(orig, ui, repo, pats, o' | |||
|
686 | 686 | else: |
|
687 | 687 | listpats.append(makestandin(pat)) |
|
688 | 688 | |
|
689 | try: | |
|
690 | origcopyfile = util.copyfile | |
|
691 | 689 |
|
|
692 |
|
|
|
690 | def overridecopyfile(orig, src, dest, *args, **kwargs): | |
|
693 | 691 |
|
|
694 | 692 |
|
|
695 | 693 |
|
@@ -697,12 +695,9 b' def overridecopy(orig, ui, repo, pats, o' | |||
|
697 | 695 |
|
|
698 | 696 | _('destination largefile already exists')) |
|
699 | 697 |
|
|
700 |
|
|
|
701 | ||
|
702 | util.copyfile = overridecopyfile | |
|
698 | orig(src, dest, *args, **kwargs) | |
|
699 | with extensions.wrappedfunction(util, 'copyfile', overridecopyfile): | |
|
703 | 700 | result += orig(ui, repo, listpats, opts, rename) |
|
704 | finally: | |
|
705 | util.copyfile = origcopyfile | |
|
706 | 701 | |
|
707 | 702 | lfdirstate = lfutil.openlfdirstate(ui, repo) |
|
708 | 703 | for (src, dest) in copiedfiles: |
General Comments 0
You need to be logged in to leave comments.
Login now