# HG changeset patch # User Boris Feld # Date 2017-08-01 16:07:34 # Node ID 9c27a2891b7545d7a176bc774a51840b523a50d9 # Parent 2194a8723138461b80262a1923dec33a1c39fe15 evolution: rename bumped to phase-divergent Rename bumped to phase-divergent in all external user-facing output. Only update user-facing output for the moment, variables names, templates keyword and potentially configuration would be done in later series. The renaming is done according to https://www.mercurial-scm.org/wiki/CEDVocabulary. Differential Revision: https://phab.mercurial-scm.org/D216 diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -4943,7 +4943,7 @@ def summary(ui, repo, **opts): troublemsg = { "unstable": _("orphan: %d changesets"), "divergent": _("content-divergent: %d changesets"), - "bumped": _("bumped: %d changesets"), + "bumped": _("phase-divergent: %d changesets"), } if numtrouble > 0: ui.status(troublemsg[trouble] % numtrouble + "\n") diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -230,14 +230,14 @@ class basectx(object): Troubles are returned as strings. possible values are: - orphan, - - bumped, + - phase-divergent, - content-divergent. """ troubles = [] if self.unstable(): troubles.append('orphan') if self.bumped(): - troubles.append('bumped') + troubles.append('phase-divergent') if self.divergent(): troubles.append('content-divergent') return troubles diff --git a/mercurial/exchange.py b/mercurial/exchange.py --- a/mercurial/exchange.py +++ b/mercurial/exchange.py @@ -677,9 +677,10 @@ def _pushcheckoutgoing(pushop): if unfi.obsstore: # this message are here for 80 char limit reason mso = _("push includes obsolete changeset: %s!") + mspd = _("push includes phase-divergent changeset: %s!") mscd = _("push includes content-divergent changeset: %s!") mst = {"orphan": _("push includes orphan changeset: %s!"), - "bumped": _("push includes bumped changeset: %s!"), + "phase-divergent": mspd, "content-divergent": mscd} # If we are to push if there is at least one # obsolete or unstable changeset in missing, at diff --git a/tests/test-obsolete.t b/tests/test-obsolete.t --- a/tests/test-obsolete.t +++ b/tests/test-obsolete.t @@ -207,7 +207,7 @@ Check that public changeset are not acco $ hg --hidden phase --public 2 $ hg log -G - @ 5:5601fb93a350 (draft bumped) [tip ] add new_3_c + @ 5:5601fb93a350 (draft phase-divergent) [tip ] add new_3_c | | o 2:245bde4270cd (public) [ ] add original_c |/ @@ -224,7 +224,7 @@ note that the bumped changeset (5:5601fb the public changeset $ hg log --hidden -r 'bumped()' - 5:5601fb93a350 (draft bumped) [tip ] add new_3_c + 5:5601fb93a350 (draft phase-divergent) [tip ] add new_3_c And that we can't push bumped changeset @@ -239,20 +239,20 @@ And that we can't push bumped changeset $ hg push ../tmpa pushing to ../tmpa searching for changes - abort: push includes bumped changeset: 5601fb93a350! + abort: push includes phase-divergent changeset: 5601fb93a350! [255] Fixing "bumped" situation We need to create a clone of 5 and add a special marker with a flag $ hg summary - parent: 5:5601fb93a350 tip (bumped) + parent: 5:5601fb93a350 tip (phase-divergent) add new_3_c branch: default commit: (clean) update: 1 new changesets, 2 branch heads (merge) phases: 1 draft - bumped: 1 changesets + phase-divergent: 1 changesets $ hg up '5^' 0 files updated, 0 files merged, 1 files removed, 0 files unresolved $ hg revert -ar 5 @@ -914,7 +914,7 @@ Several troubles on the same changeset ( changeset: 7:50c51b361e60 user: test date: Thu Jan 01 00:00:00 1970 +0000 - instability: orphan, bumped + instability: orphan, phase-divergent summary: add babar @@ -926,7 +926,7 @@ test the "obsolete" templatekw test the "troubles" templatekw $ hg log -r 'bumped() and unstable()' - 7:50c51b361e60 (draft orphan bumped) [ ] add babar + 7:50c51b361e60 (draft orphan phase-divergent) [ ] add babar test the default cmdline template @@ -934,7 +934,7 @@ test the default cmdline template changeset: 7:50c51b361e60 user: test date: Thu Jan 01 00:00:00 1970 +0000 - trouble: orphan, bumped + trouble: orphan, phase-divergent summary: add babar $ hg log -T default -r 'obsolete()' @@ -950,14 +950,14 @@ test summary output $ hg up -r 'bumped() and unstable()' 1 files updated, 0 files merged, 1 files removed, 0 files unresolved $ hg summary - parent: 7:50c51b361e60 (orphan, bumped) + parent: 7:50c51b361e60 (orphan, phase-divergent) add babar branch: default commit: (clean) update: 2 new changesets (update) phases: 4 draft orphan: 2 changesets - bumped: 1 changesets + phase-divergent: 1 changesets $ hg up -r 'obsolete()' 0 files updated, 0 files merged, 1 files removed, 0 files unresolved $ hg summary @@ -968,7 +968,7 @@ test summary output update: 3 new changesets (update) phases: 4 draft orphan: 2 changesets - bumped: 1 changesets + phase-divergent: 1 changesets Test incoming/outcoming with changesets obsoleted remotely, known locally ===============================================================================