Repository navigation
[Repos] Warn when duplicated repo files are still being copied - #5041
Merged
Merged
Conversation
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 1dde237. Configure here.
The Hub now copies LFS/Xet files of a duplicated repo in a background job. `duplicate_repo` returns a `DuplicatedRepoUrl` with `files_copy_pending`, `get_duplication_status` returns the copy progress, and the CLI warns when the copy is still pending and adds `hf repos duplication-status`. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Keep only DuplicatedRepoUrl.files_copy_pending and the CLI warning. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Wauplin
force-pushed
the
duplicate-status
branch
from
September 30, 2026 14:53
1dde237 to
acf15f0
Compare
Wauplin
marked this pull request as ready for review
September 30, 2026 15:04
# Conflicts: # docs/source/en/guides/repository.md
Contributor
|
This PR has been shipped as part of the v2.1.0 release. |
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.

Follow-up to moon-landing#19664: the Hub now copies LFS/Xet files of a duplicated repo in a background job and returns
filesCopyPending. Until the copy is done, downloading these files from the duplicate fails.Summary
duplicate_reporeturns aDuplicatedRepoUrl(subclass ofRepoUrl, no breaking change) with afiles_copy_pending: boolattribute.hf repos duplicateprints a warning on stderr when the copy is still pending.GET …/duplicate/statusendpoint is not exposed on purpose (too low-level for now).Example
🤖 Generated with Claude Code
Note
Low Risk
Backward-compatible return type subclassing RepoUrl; adds visibility for async LFS/Xet copy behavior without changing duplication semantics.
Overview
Repo duplication now surfaces when LFS/Xet blobs are still copying on the Hub after the duplicate call finishes.
duplicate_repo/HfApi.duplicate_reporeturn aDuplicatedRepoUrl(subclass ofRepoUrl) withfiles_copy_pending, populated from the API’sfilesCopyPendingfield.hf repos duplicateprints a stderr warning when that flag is true so users know downloads from the new repo may fail until the background copy completes.Docs cover the new type (
hf_apireference), CLIhf repos duplicatesection, and thefiles_copy_pendingcheck in the repository guide.DuplicatedRepoUrlis exported from the public package API.Reviewed by Cursor Bugbot for commit b98c8d6. Bugbot is set up for automated code reviews on this repo. Configure here.