Mercurial > evolve
view tests/test-topic-issue6500.t @ 6783:ccc8352c7133
topic: add more branchcache entries to test-topic-flow-publish-flag.t
It seems these new entries started appearing after the recent-ish refactoring
of branchcache in core. Now the server and the client have the same branch
cache data on disk, which is probably for the best.
The actual output with changeset hashes is:
branch2-base:c0155e8ec55a9b46d415d5b13a319d0c80e26e9d o double//slash
branch2-immutable:c0155e8ec55a9b46d415d5b13a319d0c80e26e9d o double//slash
branch2-served:256a2cb64fd8ada4ff18d57606d212f094cb50fb o double//slash
c0155e8ec55a is public, so it's correct to be in "base" and "immutable" repo
views. 256a2cb64fd8 is draft (without topic), so it's expected to be in the
"served" view.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Thu, 13 Jun 2024 15:45:02 +0400 |
parents | 6c67219ce779 |
children |
line wrap: on
line source
KeyError: b'topic' on history-rewriting commands (issue6500) https://bz.mercurial-scm.org/show_bug.cgi?id=6500 $ . $TESTDIR/testlib/common.sh Making sure we're not caching .topic() results for memctx or anything else that's not stored on-disk $ hg init issue6500-caching-memctx $ cd issue6500-caching-memctx $ cat >> $HGRCPATH << EOF > [extensions] > evolve = > topic = > EOF for this test we need 2 changesets with amend_source, one with topic and one without $ hg topics foo marked working directory as topic: foo $ echo apple > a $ hg ci -qAm 'apple' $ echo apricot > a $ hg ci --amend -m 'apricot' not using `hg topics --clear -r .` here because that would remove amend_source, see _changetopics() $ hg topics --clear $ hg ci --amend -m 'no foo apricot' $ hg log --hidden -r 1+2 -T '{rev}: {join(extras, " ")}\n' 1: amend_source=* branch=default topic=foo (glob) 2: amend_source=* branch=default (glob) creating and handling 2 memctx instances (based on 1 and then 2) should work $ hg touch --hidden -r 1+2 --duplicate switching to topic foo make sure extras stay the same $ hg log --hidden -r 3+4 -T '{rev}: {join(extras, " ")}\n' 3: __touch-noise__=* amend_source=* branch=default topic=foo (glob) 4: __touch-noise__=* amend_source=* branch=default (glob)