# HG changeset patch # User Pierre-Yves David # Date 1509001345 -7200 # Node ID 406992d0d611f5d016c84167cd6994ca4b30e44f # Parent 544354cfc626fee5cdc4796ca0dcd5d1c71855bd evolve: rename --contentdivergent flag to --content-divergent This makes the whole things easier to read. diff -r 544354cfc626 -r 406992d0d611 CHANGELOG --- a/CHANGELOG Thu Oct 26 08:44:50 2017 +0200 +++ b/CHANGELOG Thu Oct 26 09:02:25 2017 +0200 @@ -7,6 +7,7 @@ * drop compatibility with Mercurial 3.8, 3.9 and 4.0, * drop support for old and deprecated method to exchange obsmarkers, * forbid usage of the old pushbey based protocol to exchange obsmarkers, + * evolve: rename '--contentdivergent' flag to '--content-divergent' 6.8.0 -- 2017-10-23 ------------------- diff -r 544354cfc626 -r 406992d0d611 hgext3rd/evolve/__init__.py --- a/hgext3rd/evolve/__init__.py Thu Oct 26 08:44:50 2017 +0200 +++ b/hgext3rd/evolve/__init__.py Thu Oct 26 09:02:25 2017 +0200 @@ -705,7 +705,7 @@ if reason == 'pruned': solvemsg = _("use 'hg evolve' to update to its parent successor") elif reason == 'diverged': - debugcommand = "hg evolve --list --contentdivergent" + debugcommand = "hg evolve --list --content-divergent" basemsg = _("%s has diverged, use '%s' to resolve the issue") solvemsg = basemsg % (shortnode, debugcommand) elif reason == 'superseed': @@ -1063,11 +1063,11 @@ 'phasedivergent': _("do you want to use --phasedivergent"), 'phasedivergent+contentdivergent': _("do you want to use " "--phasedivergent or" - " --contentdivergent"), + " --content-divergent"), 'phasedivergent+orphan': _("do you want to use --phasedivergent" " or --orphan"), - 'contentdivergent': _("do you want to use --contentdivergent"), - 'contentdivergent+orphan': _("do you want to use --contentdivergent" + 'contentdivergent': _("do you want to use --content-divergent"), + 'contentdivergent+orphan': _("do you want to use --content-divergent" " or --orphan"), 'orphan': _("do you want to use --orphan"), 'any+phasedivergent': _("do you want to use --any (or --rev) and" @@ -1075,13 +1075,13 @@ 'any+phasedivergent+contentdivergent': _("do you want to use --any" " (or --rev) and" " --phasedivergent or" - " --contentdivergent"), + " --content-divergent"), 'any+phasedivergent+orphan': _("do you want to use --any (or --rev)" " and --phasedivergent or --orphan"), 'any+contentdivergent': _("do you want to use --any (or --rev) and" - " --contentdivergent"), + " --content-divergent"), 'any+contentdivergent+orphan': _("do you want to use --any (or --rev)" - " and --contentdivergent or " + " and --content-divergent or " "--orphan"), 'any+orphan': _("do you want to use --any (or --rev)" "and --orphan"), @@ -1420,7 +1420,7 @@ ('', 'bumped', False, _('solves only bumped changesets')), ('', 'phasedivergent', False, _('solves only phase-divergent changesets')), ('', 'divergent', False, _('solves only divergent changesets')), - ('', 'contentdivergent', False, _('solves only content-divergent changesets')), + ('', 'content-divergent', False, _('solves only content-divergent changesets')), ('', 'unstable', False, _('solves only unstable changesets')), ('', 'orphan', False, _('solves only orphan changesets (default)')), ('a', 'all', False, _('evolve all troubled changesets related to the ' @@ -1520,10 +1520,10 @@ if opts['divergent']: msg = ("'evolve --divergent' is deprecated, " - "use 'evolve --contentdivergent'") + "use 'evolve --content-divergent'") repo.ui.deprecwarn(msg, '4.4') - opts['contentdivergent'] = opts['divergent'] + opts['content_divergent'] = opts['divergent'] if opts['bumped']: msg = ("'evolve --bumped' is deprecated, " @@ -1532,8 +1532,10 @@ opts['phasedivergent'] = opts['bumped'] - troublecategories = ['phasedivergent', 'contentdivergent', 'orphan'] - specifiedcategories = [t for t in troublecategories if opts[t]] + troublecategories = ['phasedivergent', 'content_divergent', 'orphan'] + specifiedcategories = [t.replace('_', '') + for t in troublecategories + if opts[t]] if listopt: compat.startpager(ui, 'evolve') listtroubles(ui, repo, specifiedcategories, **opts) diff -r 544354cfc626 -r 406992d0d611 tests/test-divergent.t --- a/tests/test-divergent.t Thu Oct 26 08:44:50 2017 +0200 +++ b/tests/test-divergent.t Thu Oct 26 09:02:25 2017 +0200 @@ -53,7 +53,7 @@ |/ o 0:135f39f4bd78@default(draft) add _a [] - $ hg evolve --all --any --contentdivergent + $ hg evolve --all --any --content-divergent merge:[2] add bdivergent1 with: [3] add bdivergent2 base: [1] add _b @@ -98,7 +98,7 @@ |/ o 0:135f39f4bd78@default(draft) add _a [] - $ hg evolve --all --any --contentdivergent + $ hg evolve --all --any --content-divergent merge:[6] add cdivergent1 with: [7] cdivergent2 base: [5] add _c @@ -146,9 +146,9 @@ > EOF $ hg evolve --all nothing to evolve on current working copy parent - (do you want to use --contentdivergent) + (do you want to use --content-divergent) [2] - $ hg evolve --contentdivergent + $ hg evolve --content-divergent merge:[3] add bdivergent2 with: [2] add bdivergent1 base: [1] add _b diff -r 544354cfc626 -r 406992d0d611 tests/test-evolve-obshistory.t --- a/tests/test-evolve-obshistory.t Thu Oct 26 08:44:50 2017 +0200 +++ b/tests/test-evolve-obshistory.t Thu Oct 26 09:02:25 2017 +0200 @@ -1287,7 +1287,7 @@ $ hg update --hidden 'desc(A0)' 0 files updated, 0 files merged, 0 files removed, 0 files unresolved working directory parent is obsolete! (471f378eab4c) - (471f378eab4c has diverged, use 'hg evolve --list --contentdivergent' to resolve the issue) + (471f378eab4c has diverged, use 'hg evolve --list --content-divergent' to resolve the issue) Test output with amended + folded commit ======================================== diff -r 544354cfc626 -r 406992d0d611 tests/test-evolve-templates.t --- a/tests/test-evolve-templates.t Thu Oct 26 08:44:50 2017 +0200 +++ b/tests/test-evolve-templates.t Thu Oct 26 09:02:25 2017 +0200 @@ -659,7 +659,7 @@ $ hg up 'desc(A0)' --hidden 0 files updated, 0 files merged, 0 files removed, 0 files unresolved working directory parent is obsolete! (471f378eab4c) - (471f378eab4c has diverged, use 'hg evolve --list --contentdivergent' to resolve the issue) + (471f378eab4c has diverged, use 'hg evolve --list --content-divergent' to resolve the issue) Precursors template should show current revision as it is the working copy $ hg tlog diff -r 544354cfc626 -r 406992d0d611 tests/test-obsolete.t --- a/tests/test-obsolete.t Thu Oct 26 08:44:50 2017 +0200 +++ b/tests/test-obsolete.t Thu Oct 26 09:02:25 2017 +0200 @@ -721,7 +721,7 @@ $ hg up --hidden 2 1 files updated, 0 files merged, 1 files removed, 0 files unresolved working directory parent is obsolete! (4538525df7e2) - (4538525df7e2 has diverged, use 'hg evolve --list --contentdivergent' to resolve the issue) + (4538525df7e2 has diverged, use 'hg evolve --list --content-divergent' to resolve the issue) $ hg export 9468a5f5d8b2 | hg import - applying patch from stdin 1 new orphan changesets diff -r 544354cfc626 -r 406992d0d611 tests/test-sharing.t --- a/tests/test-sharing.t Thu Oct 26 08:44:50 2017 +0200 +++ b/tests/test-sharing.t Thu Oct 26 09:02:25 2017 +0200 @@ -505,7 +505,7 @@ 6:e3f99ce9d9cd draft fix bug 24 (v2 by alice) Use evolve to fix the divergence. - $ HGMERGE=internal:other hg evolve --contentdivergent + $ HGMERGE=internal:other hg evolve --content-divergent merge:[5] fix bug 24 (v2 by bob) with: [6] fix bug 24 (v2 by alice) base: [4] fix bug 24 (v1) diff -r 544354cfc626 -r 406992d0d611 tests/test-stabilize-result.t --- a/tests/test-stabilize-result.t Thu Oct 26 08:44:50 2017 +0200 +++ b/tests/test-stabilize-result.t Thu Oct 26 09:02:25 2017 +0200 @@ -244,14 +244,14 @@ Stabilize it - $ hg evolve -qn --confirm --contentdivergent + $ hg evolve -qn --confirm --content-divergent merge:[14] More addition with: [13] More addition base: [12] More addition perform evolve? [Ny] n abort: evolve aborted by user [255] - $ echo y | hg evolve -qn --confirm --config ui.interactive=True --contentdivergent + $ echo y | hg evolve -qn --confirm --config ui.interactive=True --content-divergent merge:[14] More addition with: [13] More addition base: [12] More addition @@ -262,7 +262,7 @@ hg up -C 3932c176bbaa && hg revert --all --rev tip && hg commit -m "`hg log -r eacc9c8240fe --template={desc}`"; - $ hg evolve -v --contentdivergent + $ hg evolve -v --content-divergent merge:[14] More addition with: [13] More addition base: [12] More addition @@ -336,14 +336,14 @@ $ hg phase 'contentdivergent()' 15: draft 17: draft - $ hg evolve -qn --contentdivergent + $ hg evolve -qn --content-divergent hg update -c 0b336205a5d0 && hg merge f344982e63c4 && hg commit -m "auto merge resolving conflict between 0b336205a5d0 and f344982e63c4"&& hg up -C 3932c176bbaa && hg revert --all --rev tip && hg commit -m "`hg log -r 0b336205a5d0 --template={desc}`"; - $ hg evolve --contentdivergent + $ hg evolve --content-divergent merge:[17] More addition (2) with: [15] More addition base: [12] More addition diff -r 544354cfc626 -r 406992d0d611 tests/test-uncommit.t --- a/tests/test-uncommit.t Thu Oct 26 08:44:50 2017 +0200 +++ b/tests/test-uncommit.t Thu Oct 26 09:02:25 2017 +0200 @@ -287,7 +287,7 @@ $ hg up -C 3 --hidden 1 files updated, 0 files merged, 0 files removed, 0 files unresolved working directory parent is obsolete! (5eb72dbe0cb4) - (5eb72dbe0cb4 has diverged, use 'hg evolve --list --contentdivergent' to resolve the issue) + (5eb72dbe0cb4 has diverged, use 'hg evolve --list --content-divergent' to resolve the issue) $ hg --config extensions.purge= purge $ hg uncommit --all -X e 1 new content-divergent changesets