Mercurial > evolve
comparison tests/test-evolve-abort-phasediv.t @ 3839:ac0717f23921
evolve: show unfinished information in `hg status -v` (issue5886)
`hg status -v` shows information about unfinished states or `hg status` shows it
when `commands.status.verbose=True` is set.
Before this patch, information about interrupted evolve does not show up because
evolve does not resgiters in cmdutil.STATES. This patch make sure we register
evolve related information there.
There has been an idea to unify cmdutil.unfinishedstates and cmdutil.STATES
which needs some work and the resulting state does looks a bit complicated. So
till the time we unify them, let's fix this bug by registering in
cmdutil.STATES.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Wed, 06 Jun 2018 04:29:05 +0530 |
parents | 6240579fd0c0 |
children | f0096db2a7b1 |
comparison
equal
deleted
inserted
replaced
3838:2808c899bc10 | 3839:ac0717f23921 |
---|---|
89 warning: conflicts while merging c! (edit, then use 'hg resolve --mark') | 89 warning: conflicts while merging c! (edit, then use 'hg resolve --mark') |
90 evolution failed! | 90 evolution failed! |
91 fix conflict then run 'hg evolve --continue' or use `hg evolve --abort` | 91 fix conflict then run 'hg evolve --continue' or use `hg evolve --abort` |
92 abort: unresolved merge conflicts (see hg help resolve) | 92 abort: unresolved merge conflicts (see hg help resolve) |
93 [255] | 93 [255] |
94 | |
95 testing that interrupted evolve shows up in morestatus | |
96 $ hg status -v | |
97 M c | |
98 A d | |
99 # The repository is in an unfinished *evolve* state. | |
100 | |
101 # Unresolved merge conflicts: | |
102 # | |
103 # c | |
104 # | |
105 # To mark files as resolved: hg resolve --mark FILE | |
106 | |
107 # To continue: hg evolve --continue | |
108 # To abort: hg evolve --abort | |
109 # To stop: hg evolve --stop | |
110 # (also see `hg help evolve.interrupted`) | |
111 | |
94 | 112 |
95 $ hg evolve --abort | 113 $ hg evolve --abort |
96 evolve aborted | 114 evolve aborted |
97 working directory is now at ddba58020bc0 | 115 working directory is now at ddba58020bc0 |
98 | 116 |