comparison tests/test-push-checkheads-partial-C2.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 9b3f95d9783d
children 89630d0b3e23
comparison
equal deleted inserted replaced
35708:03e921942163 35709:1a09dad8b85a
59 0 files updated, 0 files merged, 1 files removed, 0 files unresolved 59 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
60 $ mkcommit A1 60 $ mkcommit A1
61 created new head 61 created new head
62 $ hg debugobsolete `getid "desc(A0)" ` `getid "desc(A1)"` 62 $ hg debugobsolete `getid "desc(A0)" ` `getid "desc(A1)"`
63 obsoleted 1 changesets 63 obsoleted 1 changesets
64 1 new orphan changesets
64 $ hg log -G --hidden 65 $ hg log -G --hidden
65 @ f6082bc4ffef (draft): A1 66 @ f6082bc4ffef (draft): A1
66 | 67 |
67 | * d73caddc5533 (draft): B0 68 | * d73caddc5533 (draft): B0
68 | | 69 | |