-
Notifications
You must be signed in to change notification settings - Fork 7
repo_synchroniser: avoid non fast-forward and nothing changed issues (bug 1965991) #49
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
base: main
Are you sure you want to change the base?
Conversation
…d issues when reprocessing old messages
| try: | ||
| repo = self.get_clone_repo() | ||
| except PermissionError as exc: | ||
| except PermissionError as e: |
There was a problem hiding this comment.
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.
…-forward issues when reprocessing old messages
…on fast-forward issues when reprocessing old messages
…avoid non fast-forward issues when reprocessing old messages
zzzeid
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly nits
| # 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 |
There was a problem hiding this comment.
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>
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 pushcommand to do most of the checks attempted here.