-
Notifications
You must be signed in to change notification settings - Fork 346
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
Bug: almost every edit results in divergence #1608
Comments
It isn't a particularly large repo as well --
(PLMK if there's any debug info I can provide.) |
I think this is similar to #924. The background If you're okay with |
This is what I actually run every couple seconds -- the last two jj invocations are with Re: "background |
jj has locks (most notably for working copy updates), but tries to minimize the locked section afaik. Concurrent operations will be merged later and eventually converge. https://github.com/martinvonz/jj/blob/main/docs/technical/concurrency.md I suspect that modification on git storage would be visible a bit earlier, and captured by automated |
@avamsi, does |
To give a little bit more context, I don't actually do any concurrent editing, so unless I checkout a different revision accidentally, my working copy would be the actual state, so I can just hide all other divergent revisions by running something like |
Otherwise, working-copy snapshot would be taken against wrong parent, which would cause divergence if the history was previously rewritten. Fixes jj-vcs#1608
This was a pleasant surprise! Thanks, Yuya! One early observation, -- looks like I'm ending up with 2 empty revisions now (which is very much a non issue, especially in comparison) in cases where I would end up with 2 divergent revisions before. I may be wrong though, I'll update again in some time. |
I observed such (random) behavior while debugging #924, but my test script spawned ~40 A possible explanation is that the |
Sorry, I forgot to update this.
Yep, can confirm -- didn't face this again after my previous comment! |
This is the source of the problem I noticed when debugging jj-vcs#924 and jj-vcs#1608. I don't think this can be easily fixed, so let's document it.
Description
jj log
running in the background every couple seconds.Steps to Reproduce the Problem
I'm unable to reproduce the issue in an almost empty test repo.
The text was updated successfully, but these errors were encountered: