refactor: the server, restore and the window's seams on the plain-folder backup; git removed from the store
Restore reads a destination folder, a set's folder, or a backup file with an optional passphrase; the server cuts the books under the store's lock and writes the folder outside it; the format upgrade proves a local backup in the book's folder (the same form) before it moves the format. The old backup (git processes, their locks, the output drain) and every test of it are gone; what each test protected is held by the new form's tests (table in the report). Old settings and an old history in a book's folder are said in the status and left alone. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
9f4529b078
commit
a6cd89d2a6
35 files changed
+1150
-6636
No files matched your search
@@ -307,10 +307,17 @@ impl ledger_gui::owner::Owner for ViewerOwner {
|
||||
source: &str,
|
||||
id: Option<String>,
|
||||
replace: bool,
|
||||
passphrase: Option<ledger_gui::owner::Secret>,
|
||||
) -> Result<ledger_gui::owner::RestorePlan, String> {
|
||||
let p = ledger_host::commands::plan_restore(&self.common, source, id, replace, false)?;
|
||||
let pass = passphrase.map(|p| ledger_mcp::admin::Passphrase(p.0.clone()));
|
||||
let p =
|
||||
ledger_host::commands::plan_restore(&self.common, source, id, replace, false, pass)?;
|
||||
Ok(ledger_gui::owner::RestorePlan {
|
||||
source: p.source,
|
||||
passphrase: p
|
||||
.passphrase
|
||||
.as_ref()
|
||||
.map(|p| ledger_gui::owner::Secret(p.0.clone())),
|
||||
id: p.id,
|
||||
replace: p.replace,
|
||||
head: p.head,
|
||||
@@ -323,6 +330,10 @@ impl ledger_gui::owner::Owner for ViewerOwner {
|
||||
&self.common,
|
||||
&ledger_host::commands::RestorePlan {
|
||||
source: plan.source.clone(),
|
||||
passphrase: plan
|
||||
.passphrase
|
||||
.as_ref()
|
||||
.map(|p| ledger_mcp::admin::Passphrase(p.0.clone())),
|
||||
id: plan.id.clone(),
|
||||
replace: plan.replace,
|
||||
head: plan.head.clone(),
|
||||
|
||||
Reference in new issue
Block a user