Mercurial > evolve
comparison CHANGELOG @ 4728:ef8907df73fc stable
touch: fix the inconsistent behavior of divergence catching logic (issue6107)
When touching a node, the way we check if it can lead to divergence
is we look at the successors sets of the rev being touched. And if
there is successor revs exists (excluding the case when that successor
set is (A,) for rev A) that means there will be divergence and we warn
the user.
This works fine but there is still a case (which is not covered by looking
at successor sets) which can lead to divergence.
That case is: when there is already a revision exists which is divergent
to the revision being touched. And performing the touch would revive
that "dead" divergence. (Dead because one of the revision is obsolete which
is the one we are touching)
And to see if there is any rev which is divergent to a particular rev
we already have a function which we can use here
i.e. `evolvecmd.divergentsets(repo, ctx_being_touched)`
Changes in test file demonstrate the fixed behaviour.
author | Sushil khanchi <sushilkhanchi97@gmail.com> |
---|---|
date | Wed, 17 Jul 2019 17:58:44 +0200 |
parents | fcecbb1261f2 |
children | 076b6813a7ea 184c64c81528 |
comparison
equal
deleted
inserted
replaced
4727:355b8e17e14c | 4728:ef8907df73fc |
---|---|
6 | 6 |
7 * pick: no longer forget file in case of conflict (issue6037) | 7 * pick: no longer forget file in case of conflict (issue6037) |
8 * pick: properly report and cleanup "unfinished state" | 8 * pick: properly report and cleanup "unfinished state" |
9 * prune: don't update wcp if pruned revision are unrelated (issue6137) | 9 * prune: don't update wcp if pruned revision are unrelated (issue6137) |
10 * evolve: properly prune changeset with no change in case of conflict (issue5967) | 10 * evolve: properly prune changeset with no change in case of conflict (issue5967) |
11 * touch: detect resulting divergence in more cases (issue6107) | |
11 | 12 |
12 9.0.0 -- 2019-06-06 | 13 9.0.0 -- 2019-06-06 |
13 ------------------- | 14 ------------------- |
14 | 15 |
15 * evolve: preserve the working directory after resolving instability (BC) | 16 * evolve: preserve the working directory after resolving instability (BC) |