Commits w/ same change ID #4193
Unanswered
crepererum
asked this question in
Q&A
Replies: 2 comments 2 replies
-
These are divergent commits see https://github.com/martinvonz/jj/blob/main/docs/FAQ.md#how-do-i-deal-with-divergent-changes--after-the-change-id, because your bot writes a new history for these commits. |
Beta Was this translation helpful? Give feedback.
1 reply
-
You can determine exactly which operation caused the divergent change by running |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the recent days I ran into situations where jj got confused about the commit<>change mapping. This was visible in
jj log
, e.g.(note the red coloring of the change ID and the two question marks
??
)Using that commit or an affected branch results in
jj will also list the affected commits so you can abandon the ones you don't want. However it's rather tricky to find correct/wanted commit, you basically have to check them out and manually judge which is the "later" one (in terms of your personal work progress / wall clock).
I am trying to figure out what I am doing "wrong" to trigger this issue and I have a rough idea:
I'm using jj with GitHub. The target repo has a quirk that sometimes a CI bot will push to your branches to "fix" certain issues it found (it adds a commit on top). I am wondering if this trips jj.
Any idea? Does anyone else run into this problem? I couldn't find any other reports.
Beta Was this translation helpful? Give feedback.
All reactions