Commit 97e1291
Ahmed Bilal
[IO] Fix rootcp --replace flag not working with recursive copy
When copying non-tree objects recursively, the --replace flag was
checking for 'setName' instead of the actual object name that would
be written. This caused objects to be written with new cycles instead
of replacing existing ones.
The fix determines the actual name (setName if provided, otherwise
objectName) and uses that for the replacement check.
Fixes #70521 parent 7b3872e commit 97e1291
1 file changed
+9
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
692 | 692 | | |
693 | 693 | | |
694 | 694 | | |
695 | | - | |
696 | | - | |
697 | | - | |
698 | | - | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
699 | 701 | | |
700 | 702 | | |
| 703 | + | |
701 | 704 | | |
702 | | - | |
703 | | - | |
704 | | - | |
705 | | - | |
706 | | - | |
707 | | - | |
| 705 | + | |
| 706 | + | |
708 | 707 | | |
709 | 708 | | |
710 | 709 | | |
| |||
0 commit comments