Skip to content
Snippets Groups Projects
Commit 1b88bbe6 authored by Georges Racinet's avatar Georges Racinet :squid:
Browse files

Attempt to reproduce heptapod#1777

No matter how we have so far been ordering operations, the
final pull still worked (decide what to do of this added scenario,
it may still be valuable).
parent 1ec9151b
No related branches found
No related tags found
No related merge requests found
Pipeline #88449 passed
......@@ -429,6 +429,27 @@
src.prune(rebased_tag_ctx.hex())
dest_pull()
# heptapod#1777: case where the tagged changeset was obsoleted then
# published
tagged = scmutil.revsingle(src.repo, b'.')
src.update_bin(tagged.node())
src_path.join("foo", "amending")
src.command('amend', message=b'amend will be pruned almost immediately')
amended = scmutil.revsingle(src.repo, b'.')
dest_pull()
src.prune(amended.hex())
# we need to switch temporarily to the unfiltered repo for this
# reproduction
repo = src.repo
src.repo = repo.unfiltered()
src.set_phase('public', [tagged.hex()])
src.repo = repo
src.update_bin(tagged.node())
src.command('tag', b'obspub')
dest_pull()
def test_tip_obsolete(empty_fixture):
"""Since 'tip' is a tag, we don't to refuse making it obsolete."""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment