Repository navigation
Conversation
Member
|
I'm sorry but we don't take PRs that are mass-generated with AI agents. |
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.
Fixes #179.
When
pyosmium-get-changeswrites a PBF diff, store the replication service URL, the last downloaded sequence number, and that sequence's UTC state timestamp in the file header. A size limit or interrupted download can stop before the requested end. The header and sequence file use the actual download boundary in both cases.Reuse the header construction for
apply_diffs_to_file. A matching state supplies the timestamp. If it is missing, malformed, or describes another sequence, keep the sequence number and URL. The stored URL omits HTTP user information and fragments.Tested on macOS arm64 with CPython 3.12 and the osmium 4.3.2 native extensions. All 84 replication and CLI tests passed, including five new regression cases. A local HTTP replication service also exercised the installed console entry, real PBF readback, resuming with
-O, binary stdout, compressed files, partial downloads and XML. The repository flake8 check passed. The full native build, full test suite and mypy were not run locally.Prepared with assistance from OpenAI Codex.