-
Notifications
You must be signed in to change notification settings - Fork 350
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
FR: allow restoring repo without snapshot #3616
Comments
Have you tried |
|
iirc, there are some discussion about demoting the max-new-file-size error to warning. It will allow |
Perhaps it would be feasible to actually remove newly created files when |
|
maybe Maybe we could even extend the error and hint to include suggestions for commands to: |
Yeah, |
Another option might be some new global flag that's similar to |
I think There's another problem that isn't spelt out directly in the OP. From a UX perspective, it's important to know what you're going to destroy first, but that currently isn't possible, because Instead, it should report that some files are
So I think we need to fix both of these for these cases to not hurt so badly. |
I think this provides a better UX than refusing any operation due to large files. Because untracked files won't be overwritten, it's usually safe to continue operation ignoring the untracked files. One caveat is that new large files can become tracked if files of the same name checked out. (see the test case) FWIW, the warning will be printed only once if watchman is enabled. If we use the snapshot stats to print untracked paths in "jj status", this will be a problem. Closes jj-vcs#3616, jj-vcs#3912
I think this provides a better UX than refusing any operation due to large files. Because untracked files won't be overwritten, it's usually safe to continue operation ignoring the untracked files. One caveat is that new large files can become tracked if files of the same name checked out. (see the test case) FWIW, the warning will be printed only once if watchman is enabled. If we use the snapshot stats to print untracked paths in "jj status", this will be a problem. Closes jj-vcs#3616, jj-vcs#3912
Is your feature request related to a problem? Please describe.
Your app accidentally created a billion files, and you want to restore the repository to a clean state.
If one of the files is larger than
snapshot.max-new-file-size
, you're in trouble.You can either snapshot it to delete or do it by hand, both of which are cumbersome.
Describe the solution you'd like
jj restore --force
, which will skip snapshotting of repo. Maybe we can introduce newjj reset
subcommand.The text was updated successfully, but these errors were encountered: