This is an archive of the discontinued Mercurial Phabricator instance.

scmutil: move construction of instability count message to separate fn
ClosedPublic

Authored by pulkit on Jun 14 2018, 3:55 PM.

Details

Summary

When the commad we are running, introduces new instabilities, we show a message
like 5 new orphan changesets, 2 new content-divergent changesets, `1 new
phase-divergent changesets` etc which is very nice.

Now taking a step ahead, we want users to show how to fix them too. Something
like:

5 new orphan changesets (run 'hg evolve' to resolve/stabilize them)
`2 new content-divergent changesets (run 'hg evolve --content-divergent' to
resolve them)`

and maybe telling user a way to understand more about those new instabilities
like hg evolve --list or hg log -r 'orphan()' something like that.

The idea came from issue5855 which I want to fix because fixing that will result
in a nice UI.

Taking the construction logic out will allow extensions like evolve (maybe
rebase too) to wrap that and add information about how to resolve and how to
understand the instability more.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

pulkit created this revision.Jun 14 2018, 3:55 PM
pulkit updated this revision to Diff 9061.Jun 14 2018, 4:28 PM
lothiraldan accepted this revision.Jun 15 2018, 3:54 AM
lothiraldan added a subscriber: lothiraldan.
lothiraldan added inline comments.
mercurial/scmutil.py
1572

Small typo seprate -> separate

pulkit updated this revision to Diff 9272.Jun 24 2018, 3:42 PM
durin42 accepted this revision.Jun 25 2018, 10:48 AM
This revision is now accepted and ready to land.Jun 25 2018, 10:48 AM
This revision was automatically updated to reflect the committed changes.