Repository navigation
import-ldif and import-project keep the tree's Library folders - #148
Merged
Merged
Conversation
Over an existing tree, both now give each other Library the tree already has its existing alias (Libraries.adoptAliases), as import-live and capture do since 0.79.0. A source with a second container of the same name no longer renames the first one's folder. The three commands share one helper, Cli.keepTreeAliases. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to the Open item in library-containers.md (#147).
Since 0.79.0,
import-live, capture and Update this branch keep the tree's folder for each Library it already has.import-ldifandimport-projectstill worked the aliases out again from the source. So when an LDIF or Designer project gained a second container namedLibrary, the existinglibraries/Library/folder was renamed tolibraries/Library@services/, and the tree's history showed its files moving.Cli.keepTreeAliases: a new helper. When<outDir>already holds a tree, it callsLibraries.adoptAliaseswith that tree, so only a container new to the tree gets a fresh alias.import-ldif,import-projectandimport-livenow all use it.note:and uses the source's own aliases.import-liveused to stop with an error in that case.commands.md,tree-layout.mdandlibrary-containers.mdare updated, the note's Open section is removed, and the CHANGELOG has an Unreleased entry.Tests
ImportKeepsLibraryFoldersTest: runs twoimport-ldifpasses into one tree, where the second LDIF addscn=Library,o=other.libraries/Library/stays, and the new container gets its own folder. It also checks that a fresh tree still gets the source's own aliases (Library@services,Library@other).Library@services.🤖 Generated with Claude Code