Patchwork D1868: evolution: make reporting of new unstable changesets optional

login
register
mail settings
Submitter phabricator
Date Jan. 18, 2018, 1:42 p.m.
Message ID <7905b13ed6a08727ac8ced4c608ac394@localhost.localdomain>
Download mbox | patch
Permalink /patch/26896/
State Not Applicable
Headers show

Comments

phabricator - Jan. 18, 2018, 1:42 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG5cd60b0587a8: evolution: make reporting of new unstable changesets optional (authored by martinvonz, committed by ).

CHANGED PRIOR TO COMMIT
  https://phab.mercurial-scm.org/D1868?vs=4843&id=4899#toc

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1868?vs=4843&id=4899

REVISION DETAIL
  https://phab.mercurial-scm.org/D1868

AFFECTED FILES
  mercurial/configitems.py
  mercurial/scmutil.py
  tests/test-obsolete.t

CHANGE DETAILS




To: martinvonz, #hg-reviewers, lothiraldan, yuja
Cc: mercurial-devel

Patch

diff --git a/tests/test-obsolete.t b/tests/test-obsolete.t
--- a/tests/test-obsolete.t
+++ b/tests/test-obsolete.t
@@ -340,6 +340,17 @@ 
 
   $ cd ..
 
+Can disable transaction summary report
+
+  $ hg init transaction-summary
+  $ cd transaction-summary
+  $ mkcommit a
+  $ mkcommit b
+  $ hg up -q null
+  $ hg --config experimental.evolution.report-instabilities=false debugobsolete `getid a`
+  obsoleted 1 changesets
+  $ cd ..
+
 Exchange Test
 ============================
 
diff --git a/mercurial/scmutil.py b/mercurial/scmutil.py
--- a/mercurial/scmutil.py
+++ b/mercurial/scmutil.py
@@ -1260,7 +1260,8 @@ 
                 repo.ui.status(_('obsoleted %i changesets\n')
                                % len(obsoleted))
 
-    if obsolete.isenabled(repo, obsolete.createmarkersopt):
+    if (obsolete.isenabled(repo, obsolete.createmarkersopt) and
+        repo.ui.configbool('experimental', 'evolution.report-instabilities')):
         instabilitytypes = [
             ('orphan', 'orphan'),
             ('phase-divergent', 'phasedivergent'),
diff --git a/mercurial/configitems.py b/mercurial/configitems.py
--- a/mercurial/configitems.py
+++ b/mercurial/configitems.py
@@ -487,6 +487,9 @@ 
 coreconfigitem('experimental', 'evolution.bundle-obsmarker',
     default=False,
 )
+coreconfigitem('experimental', 'evolution.report-instabilities',
+    default=True,
+)
 coreconfigitem('experimental', 'evolution.track-operation',
     default=True,
 )