This was missed in 2593873cda0f
Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage
No Linters Available |
No Unit Test Coverage |
Path | Packages | |||
---|---|---|---|---|
M | rust/hg-core/src/dirstate_tree/dirstate_map.rs (4 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
57ea44643c5b | c4dcac589c88 | Raphaël Gomès | Fri, Apr 8, 12:10 PM |
Status | Author | Revision | |
---|---|---|---|
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare | ||
Needs Review | Alphare |
map.on_disk, | map.on_disk, | ||||
unreachable_bytes, | unreachable_bytes, | ||||
&mut map.root, | &mut map.root, | ||||
key, | key, | ||||
|_ancestor| {}, | |_ancestor| {}, | ||||
)? | )? | ||||
.and_then(|node| { | .and_then(|node| { | ||||
if let Some(source) = &node.copy_source { | if let Some(source) = &node.copy_source { | ||||
*count -= 1; | *count = count | ||||
.checked_sub(1) | |||||
.expect("nodes_with_copy_source_count should be >= 0"); | |||||
DirstateMap::count_dropped_path(unreachable_bytes, source); | DirstateMap::count_dropped_path(unreachable_bytes, source); | ||||
} | } | ||||
node.copy_source.take().map(Cow::into_owned) | node.copy_source.take().map(Cow::into_owned) | ||||
})) | })) | ||||
}) | }) | ||||
} | } | ||||
pub fn copy_map_insert( | pub fn copy_map_insert( |