-
Notifications
You must be signed in to change notification settings - Fork 5
Extend documentation #936
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend documentation #936
Conversation
WalkthroughThe PR updates documentation across multiple files to clarify that DFetch's patch field supports multiple patches applied sequentially. Changes include a new README section, updated docstrings, manifest documentation, and a UML diagram reflecting iterative patch application. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~4 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
dfetch/commands/diff.py (1)
67-70: Consider minor phrasing improvement.The documentation accurately describes the multi-patch workflow and provides clear instructions. The option to create an additional patch for unrelated changes aligns well with the multi-patch support.
✨ Optional phrasing improvement
For slightly better flow, consider:
-First step is to reverse the original patch, using +The first step is to reverse the original patch using
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (7)
README.mddfetch/commands/diff.pydfetch/manifest/project.pydfetch/project/metadata.pydoc/manifest.rstdoc/static/uml/update.pumldoc/vendoring.rst
🧰 Additional context used
🧠 Learnings (2)
📚 Learning: 2026-01-02T22:46:53.305Z
Learnt from: spoorcc
Repo: dfetch-org/dfetch PR: 904
File: script/package.py:10-18
Timestamp: 2026-01-02T22:46:53.305Z
Learning: In dfetch's script/package.py, importing dfetch.__version__ directly is acceptable and intentional; if dfetch is not installed in the environment, the packaging job should fail explicitly rather than handling the import error gracefully.
Applied to files:
README.md
📚 Learning: 2025-12-31T10:55:28.644Z
Learnt from: spoorcc
Repo: dfetch-org/dfetch PR: 895
File: dfetch/commands/check.py:133-142
Timestamp: 2025-12-31T10:55:28.644Z
Learning: In dfetch, when determining ignored files for a project, the VCS detection should use the superproject's VCS type (where the manifest is located), not the fetched project's VCS type. The ignored files are then queried from the project's destination path using the superproject's VCS system.
Applied to files:
dfetch/commands/diff.py
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (15)
- GitHub Check: build / Build wheel 📦
- GitHub Check: build / build (ubuntu-latest)
- GitHub Check: build / build (windows-latest)
- GitHub Check: build / build (macos-latest)
- GitHub Check: Codacy Static Code Analysis
- GitHub Check: run / run (windows-latest, 3.10)
- GitHub Check: DevContainer Build & Test
- GitHub Check: run / run (macos-latest, 3.13)
- GitHub Check: run / run (windows-latest, 3.13)
- GitHub Check: run / run (windows-latest, 3.11)
- GitHub Check: run / run (windows-latest, 3.14)
- GitHub Check: run / run (windows-latest, 3.12)
- GitHub Check: run / run (windows-latest, 3.9)
- GitHub Check: run / test-cygwin
- GitHub Check: test / test
🔇 Additional comments (8)
doc/vendoring.rst (2)
257-259: Documentation clarification on multi-patch support is well integrated.The expanded explanation clearly conveys that the
patchattribute supports both single and multiple patch files applied in sequence. This aligns well with the best practices section's emphasis on minimizing local modifications.
333-333: Good addition of real-world Dfetch example.Adding the Red Jackets Jazzband project provides readers with another concrete reference implementation using Dfetch.
dfetch/project/metadata.py (1)
129-131: Accurate docstring update reflecting list-based patch storage.The change from singular to plural correctly reflects the property's return type and the implementation's use of
always_str_list()to normalize patches to a list. The supporting comment on line 55 confirms this is an intentional feature evolution.dfetch/manifest/project.py (1)
226-228: Multi-patch documentation is clear and operationally important.The expanded explanation emphasizes that patches are applied sequentially on each fetch, which is a crucial operational detail for users. The clarification that both single and multiple patches are supported maintains backward compatibility while documenting the new capability. Implementation via
always_str_list()on line 320 aligns perfectly with this documentation.doc/static/uml/update.puml (1)
48-51: LGTM!The UML diagram correctly reflects the new multi-patch workflow with an iterative loop structure. The PlantUML syntax is valid and the logic accurately represents sequential patch application.
doc/manifest.rst (1)
95-95: LGTM!The documentation accurately reflects support for multiple patches and maintains consistent phrasing with other documentation updates in this PR.
dfetch/commands/diff.py (1)
4-6: LGTM!The updated documentation provides clearer phrasing and correctly introduces the "superproject" terminology with an explanation. The technical details accurately reflect that patches use the superproject's VCS.
README.md (1)
40-47: Link is accessible. The external link to GitLab's inner sourcing documentation (HTTP 200) is working. The new "Problems DFetch Solves" section is well-structured, accurately represents the project's capabilities, and all bullet points are clear and grammatically sound.
Summary by CodeRabbit
Release Notes
✏️ Tip: You can customize this high-level summary in your review settings.