-
Notifications
You must be signed in to change notification settings - Fork 390
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
Checkout takes me to the wrong commit #697
Comments
It is possible that I put the repository in some completely insane state by now while trying to recover from the previous issues we discussed. The solution may be to kill everything and clone it anew, which I'm fine with. I posted this mainly in case somebody will recognize this as a recent regression. (But I haven't checked whether it's a regression; it's getting late). |
Interesting! I ran The weird conflicts are probably #463, which I'm working on fixing.
That shouldn't be necessary. You can instead remove |
Oh, the bad working-copy commit has the same change ID ( |
Do you remember seeing any error indicating that the update failed? Or did you simply ^C it? We should fix this case by writing some file indicating that an update of the working copy is in progress, so if we later find that file, we can attempt to finish the update then. |
No, I don't remember any error or ^C-s. |
Perhaps, this is dup of #1608. The last two operations appear to be fired by concurrent processes, which would be synchronized with the working copy lock. |
Repo state: jj-repo2.tar.gz
Let me replay what happened when I did
jj up f364
starting at the op log pointd9a3
in the following op log:The log looked as follows. I wanted to move to the change
f36469
, the second one from the top:There was only one visible commit in that changeset:
I did
jj up f364
at this point. The expected behavior would have been for me to now be on an empty commit on top off364
.What actually happend is that I ended up on top of the
c80f0
commit (third from the top in the log above). At the same time, a commit on top off364
also was created.In other words,
jj log
now looks as follows:This may (or may not) be related to weird conflicts I'm getting in the
mergetool2@origin
branch. I kept trying to clear that up, which only seemed to make things worse. Currently,jj branch list
shows:The text was updated successfully, but these errors were encountered: