mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-24 06:34:09 +00:00
Enhance syncback functionality and improve code readability
- Refactored the syncback process to streamline directory management and improve handling of class transitions in clean mode. - Updated the `clone_tree_filtered` function to accept a tuple of compiled Globs and original pattern strings, enhancing flexibility in ignore pattern handling. - Simplified logic for checking if paths are inside removed directories, improving code clarity. - Added detailed comments to clarify the purpose of new logic for handling script directory transitions, ensuring better maintainability. - Improved logging for better traceability during syncback operations.
This commit is contained in:
parent
1534a54808
commit
411f79ee81
10 changed files with 232 additions and 65 deletions
|
|
@ -75,11 +75,16 @@ fn assert_rbx_equal(file_a: &Path, file_b: &Path, test_name: &str) {
|
|||
let data_b = fs::read(file_b).expect("Failed to read roundtrip rbxl");
|
||||
|
||||
let dom_a = rbx_binary::from_reader(data_a.as_slice()).expect("Failed to parse original rbxl");
|
||||
let dom_b =
|
||||
rbx_binary::from_reader(data_b.as_slice()).expect("Failed to parse roundtrip rbxl");
|
||||
let dom_b = rbx_binary::from_reader(data_b.as_slice()).expect("Failed to parse roundtrip rbxl");
|
||||
|
||||
// Compare the root's children (DataModel children)
|
||||
compare_children(&dom_a, dom_a.root_ref(), &dom_b, dom_b.root_ref(), test_name);
|
||||
compare_children(
|
||||
&dom_a,
|
||||
dom_a.root_ref(),
|
||||
&dom_b,
|
||||
dom_b.root_ref(),
|
||||
test_name,
|
||||
);
|
||||
}
|
||||
|
||||
/// Recursively compare children of two instances.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue