Mercurial > hg
comparison tests/test-obsolete-divergent.t @ 45156:c26335fa4225
exchange: check actually missing revs for obsolete / unstable revs (issue6372)
The previous code was using `outgoing.ancestorsof`, which was originally called
`outgoing.missingheads` although not containing the missing heads. This
confusion was probably the reason why the buggy code was written.
The actually outgoing changesets are stored in `outgoing.missing`. By checking
all outgoing changesets, we avoid the problem and can show the list of all
obsolete or unstable changesets, which is more helpful for the user.
author | Manuel Jacob <me@manueljacob.de> |
---|---|
date | Fri, 17 Jul 2020 08:21:31 +0200 |
parents | 48b99af7b4b3 |
children | 6063c1857d0a |
comparison
equal
deleted
inserted
replaced
45155:a381618210d0 | 45156:c26335fa4225 |
---|---|
116 | 116 |
117 $ hg init ../other | 117 $ hg init ../other |
118 $ hg push ../other | 118 $ hg push ../other |
119 pushing to ../other | 119 pushing to ../other |
120 searching for changes | 120 searching for changes |
121 abort: push includes content-divergent changeset: 392fd25390da! | 121 abort: push includes unstable changesets: |
122 82623d38b9ba (content-divergent) | |
123 392fd25390da (content-divergent) | |
122 [255] | 124 [255] |
123 | 125 |
124 $ cd .. | 126 $ cd .. |
125 | 127 |
126 | 128 |