This avoid a double iteration and this open the way to a better handing of
deletion. That better handling of deletion is the core reason we are doing this
refactoring.
Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage
Event Timeline
rust/hg-core/src/copy_tracing.rs | ||
---|---|---|
470 | I'd rather use a if let (None, None) = (&base_p1_copies, &base_p2_copies) , but it's not a big deal. | |
475 | This is let mut p1_copies = base_p1_copies.clone(); | |
492 | Looks like you're doing a clone that isn't needed unless we're in the ::Removed case and then unwrapping. |
rust/hg-core/src/copy_tracing.rs | ||
---|---|---|
492 | You're right, I'm blind. :) |
I'd rather use a if let (None, None) = (&base_p1_copies, &base_p2_copies) , but it's not a big deal.