Skip to content
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

git push --atomic #334

Open
riastradh opened this issue Oct 14, 2024 · 1 comment
Open

git push --atomic #334

riastradh opened this issue Oct 14, 2024 · 1 comment

Comments

@riastradh
Copy link

$ git push --atomic origin c882229d437b3afd2f2d5f1d9a5b1f6bfc04b10e:refs/heads/branches/default/tip
fatal: helper hg does not support --atomic

(Of course, with only one ref update that doesn't matter, but if there are multiple ref updates it might.)

Does this require support on the hg server side, or only on the cinnabar client side?

@glandium
Copy link
Owner

If you push several things as remote heads (not bookmarks), then pushes are already atomic, even if the --atomic option is not supported.
For bookmarks, the story is different. The bookmarks are not updated atomically at the moment, and I'm not sure whether doing a batch update would be atomic. If not, maybe update via bundlev2 would work, but I'm not sure either.
For a mix of bookmarks and heads, only the latter might work.
All of those are cinnabar side, assuming the mercurial side does the right thing.

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

No branches or pull requests

2 participants