Skip to content

Conversation

@shtrom
Copy link
Member

@shtrom shtrom commented May 9, 2025

This may happen when reprocessing old messages.

This PR is currently a WIP, as we are reaching the limits of what we can reasonably do on the user-side of cinnabar.

Waiting for a git cinnabar push command to do most of the checks attempted here.

@shtrom shtrom requested review from cgsheeh and zzzeid and removed request for cgsheeh May 9, 2025 05:41
try:
repo = self.get_clone_repo()
except PermissionError as exc:
except PermissionError as e:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have a from git import Repo, exc above, which I'd rather not shadow.

@shtrom shtrom changed the title repo_synchroniser: don't push commits to tip to avoid non fast-forward issues (bug 1963805) repo_synchroniser: don't push commits to tip to avoid non fast-forward issues (bug 1965991) May 13, 2025
@shtrom shtrom changed the title repo_synchroniser: don't push commits to tip to avoid non fast-forward issues (bug 1965991) repo_synchroniser: avoid non fast-forward and nothing changed issues (bug 1965991) May 13, 2025
shtrom added 2 commits May 13, 2025 14:15
…-forward issues when reprocessing old messages
…on fast-forward issues when reprocessing old messages
…avoid non fast-forward issues when reprocessing old messages
Copy link
Contributor

@zzzeid zzzeid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly nits

Comment on lines +233 to +247
# XXX: In the current state, cinnabar refuses to re-create a tag which already
# exists anywhere in its working state. This means we can't duplicate an existing tag to a
# different destination. This is probably sane, as we should instead have a more
# controlled way of graduating tags to repos (e.g., to m-c).
#
# Leaving this here for later reference (and to support the discussion above).
#
# assert "BAR CONTENT" in hg_cat(hg_destination_other, "bar.txt", tag)
#
# test tag commit message
# tag_log = hg_log(hg_destination_other, tag_branch, ["-T", "{desc}"])
# assert "No bug - Tagging" in tag_log
# assert tag_suffix in tag_log
# assert tag in tag_log
# assert hg_rev(hg_destination_other, branch) in tag_log
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure we need to keep commented out code, can always go back and re-add it when needed since it's still in the commit history.

Co-authored-by: Zeid <2043828+zzzeid@users.noreply.github.com>
@shtrom shtrom marked this pull request as draft May 27, 2025 23:28
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

Successfully merging this pull request may close these issues.

4 participants