comparison tests/test-revset2.t @ 35709:1a09dad8b85a

evolution: report new unstable changesets This adds a transaction summary callback that reports the number of new orphan, content-divergent and phase-divergent changesets. The code for reporting it is based on the code from the evolve extension, but simplified a bit. It simply counts the numbers for each kind of instability before and after the transaction. That's obviously not very efficient, but it's easy to reason about, so I'm doing this as a first step that can make us quite confident about the test case changes. We can optimize it later and make sure that the tests are not affected. The code has been used in the evolve extension for a long time and has apparently been sufficiently fast, so it doesn't seem like a pressing issue. Unlike the evolve extension's version of this report, this version applies to all commands (or all transactions run as part of any command, to be exact). Differential Revision: https://phab.mercurial-scm.org/D1867
author Martin von Zweigbergk <martinvonz@google.com>
date Sun, 14 Jan 2018 23:59:17 -0800
parents 12a46ad67a3c
children 8591d6afc629
comparison
equal deleted inserted replaced
35708:03e921942163 35709:1a09dad8b85a
1634 > |/ # split: B -> E, F 1634 > |/ # split: B -> E, F
1635 > B C D E # amend: B -> C -> D 1635 > B C D E # amend: B -> C -> D
1636 > \|/ | # amend: F -> G 1636 > \|/ | # amend: F -> G
1637 > A A Z # amend: A -> Z 1637 > A A Z # amend: A -> Z
1638 > EOS 1638 > EOS
1639 3 new orphan changesets
1640 3 new content-divergent changesets
1639 1641
1640 $ hg log -r 'successors(Z)' -T '{desc}\n' 1642 $ hg log -r 'successors(Z)' -T '{desc}\n'
1641 Z 1643 Z
1642 1644
1643 $ hg log -r 'successors(F)' -T '{desc}\n' 1645 $ hg log -r 'successors(F)' -T '{desc}\n'