Keep configs in ~/.config/build-release/ and tool state in ~/.local/state/build-release/, under XDG_* where set
CI / tests (pull_request) Successful in 6m34s
CI / tests (pull_request) Successful in 6m34s
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
from collections.abc import Mapping
|
||||
import pathlib
|
||||
|
||||
from failure import Failure
|
||||
@@ -7,11 +8,11 @@ from project_config.main import located
|
||||
from record_store.stores import store
|
||||
|
||||
|
||||
def history_changes(default: str, home: pathlib.Path) -> list[HistoryChange] | Failure:
|
||||
def history_changes(default: str, home: pathlib.Path, env: Mapping[str, str]) -> list[HistoryChange] | Failure:
|
||||
"""Each merged change on the default branch that touched the history, newest first. A Failure where no commit holds the history, as for one the project's config puts outside the checkout."""
|
||||
if partial := full_history():
|
||||
return partial
|
||||
config = located(None, home)
|
||||
config = located(None, home, env)
|
||||
if isinstance(config, Failure):
|
||||
return config
|
||||
record = store(config, "comprehension-history")
|
||||
|
||||
Reference in New Issue
Block a user