Conversation
breezy.tsort was relocated to vcsgraph.tsort in the breezy dromedary rewrite. Try the old import first and fall back, so loggerhead keeps running against both 3.3 and 3.4+ without changes elsewhere.
Port the loggerhead web viewer from Python to Rust, running alongside
the Python package in the same repository until we're ready to cut
over. Built on axum + askama + breezyshim.
Endpoints implemented (all verified against a live Bazaar branch and
compared structurally against Python loggerhead's output):
/ — 308 redirect to /changes
/changes — mainline log, 20 per page
/revision/<revno> — metadata, parents, grouped file changes
/diff/<new>[/<old>] — downloadable unified-diff attachment
/+filediff/<new>/<old>/path — per-file diff rendered with similar
/files[/<revno>[/<path>]] — directory listing with per-file
"Latest Rev" column
/view/<revno>/<path> — syntect-highlighted file contents
/annotate/<revno>/<path> — blame view
/download/<revid>/<path> — raw file download
/tarball/<revid> — streamed tgz via breezy.Tree.archive
/atom — Atom feed of mainline
/+revlog/<revid> — JSON revision dump
/search — stubbed (bzr-search plugin integration
is left for later)
/static/* — CSS/JS/images served from the Python
loggerhead/static directory so the
Python .pt stylesheets style the
Rust output identically
Shared templates/base.html mirrors templates/macros.pt (menu tabs,
branch name, footer) so per-page askama templates match Python's
DOM (class names, IDs, link targets) byte-for-byte where reasonable.
…n/<revno>/<path>, directory listing
- wire `--prefix` through: nest the router under the prefix and thread it into `AppState.url_prefix` so template links include it - scope the on-disk whole-history cache by branch root, so a single cache directory can back multiple branches in directory / user-dirs mode without colliding - /health and /favicon.ico routes, matching Python loggerhead - /view/<revno>/<dir> now redirects to /files/... instead of 500-ing - bare /download redirects to /changes - validate --trunk-dir / --user-dirs mutual requirement - move static assets from loggerhead/static/ to the repo-root static/ and update the default search path accordingly - trim .gitignore to the Rust layout
The apt python3-breezy on ubuntu-latest is 3.3.5, but breezyshim 0.7.16 requires brz >= 3.3.6, causing tests to abort at initialization.
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.
No description provided.