sapling/eden/scm/tests/test-bookmarks-loading-order.t
Jun Wu 73c5cb89de bookmarks: reload changelog if unknown node is seen
Summary: This mitigates loading order issues demonstrated by the previous diff.

Reviewed By: DurhamG

Differential Revision: D21148446

fbshipit-source-id: 40e4861055822b4676f3ac38d0f004b365efe86d
2020-04-21 09:19:26 -07:00

28 lines
532 B
Perl

#chg-compatible
$ configure modern
$ setconfig ui.allowemptycommit=1
$ newrepo
$ echo A | hg debugdrawdag
Active bookmark.
$ hg up A -q
Read bookmark while updating it.
With metalog it works fine:
$ hg log -r A -T '{desc}\n' --config hooks.pre-bookmark-load='hg commit -m A2'
A
$ hg log -r A -T '{desc}\n' --config hooks.pre-bookmark-load='hg commit -m A3'
A2
Without metalog:
$ setconfig experimental.metalog=false
$ hg log -r A -T '{desc}\n' --config hooks.pre-bookmark-load='hg commit -m A4'
A4