Skip to content

feat(jj): wire :DiffviewFileHistory to the JjAdapter#200

Merged
dlyongemallo merged 1 commit into
mainfrom
enable_jj_adapter_file_history
May 22, 2026
Merged

feat(jj): wire :DiffviewFileHistory to the JjAdapter#200
dlyongemallo merged 1 commit into
mainfrom
enable_jj_adapter_file_history

Conversation

@dlyongemallo
Copy link
Copy Markdown
Owner

Relates to sindrets#562.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds full :DiffviewFileHistory support to the Jujutsu (jj) adapter, enabling file-history views backed by jj log and aligning user-facing docs/completions/tests with the new capability (relates to issue sindrets#562).

Changes:

  • Implement jj file-history option parsing, scope/canonicalization, streaming log worker, and per-commit parsing to produce Diffview LogEntry/FileEntry objects.
  • Introduce JjCommit to correctly interpret jj timestamps/timezone offsets for consistent date rendering.
  • Update README + help docs and add functional/integration tests covering streaming, parsing, and glob/pathspec canonicalization.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
README.md Updates supported VCS and adapter notes to reflect :DiffviewFileHistory support for jj and document unsupported features.
lua/diffview/vcs/adapters/jj/init.lua Core implementation wiring jj file-history: options, scope resolution, streaming jj log template parsing, worker, flags, and completion.
lua/diffview/vcs/adapters/jj/commit.lua Adds JjCommit subclass to compute time_offset and iso_date appropriately for jj-provided timestamps.
lua/diffview/tests/functional/jj_adapter_spec.lua Adds functional/integration coverage for jj file-history streaming and parsing, including glob/pathspec canonicalization behavior.
doc/diffview.txt Updates :DiffviewFileHistory help text and documents jj-specific options (--revisions, --limit, --reversed) and limitations.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dlyongemallo dlyongemallo merged commit 5618279 into main May 22, 2026
11 checks passed
@dlyongemallo dlyongemallo deleted the enable_jj_adapter_file_history branch May 22, 2026 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants