changeset 626:896463193675 stable

merge with fix in 2.3
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Mon, 03 Dec 2012 15:11:09 +0100
parents e50a5d9a6cbf (current diff) 07d813af96c4 (diff)
children 28d79c21cc3a
files hgext/evolve.py tests/test-obsolete.t
diffstat 3 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/evolve.py	Tue Nov 27 14:27:50 2012 +0100
+++ b/hgext/evolve.py	Mon Dec 03 15:11:09 2012 +0100
@@ -857,7 +857,7 @@
     ret = orig(ui, repo, *args, **kwargs)
     nbunstable = len(getrevs(repo, 'unstable'))
     nbbumped = len(getrevs(repo, 'bumped'))
-    nbdivergent = len(getrevs(repo, 'unstable'))
+    nbdivergent = len(getrevs(repo, 'divergent'))
     write('unstable: %i changesets\n', nbunstable)
     write('bumped: %i changesets\n', nbbumped)
     write('divergent: %i changesets\n', nbdivergent)
--- a/tests/test-obsolete-divergent.t	Tue Nov 27 14:27:50 2012 +0100
+++ b/tests/test-obsolete-divergent.t	Mon Dec 03 15:11:09 2012 +0100
@@ -81,6 +81,16 @@
   $ hg log -r 'divergent()'
   2:82623d38b9ba A_1
   3:392fd25390da A_2
+  $ hg summary -v
+  parent: 0:d20a80d4def3 
+   base
+  branch: default
+  commit: (clean)
+  update: 3 new changesets (update)
+  unstable: 0 changesets
+  bumped: 0 changesets
+  divergent: 2 changesets
+
 
 check that mercurial refuse to push
 
--- a/tests/test-obsolete.t	Tue Nov 27 14:27:50 2012 +0100
+++ b/tests/test-obsolete.t	Mon Dec 03 15:11:09 2012 +0100
@@ -376,7 +376,6 @@
   commit: 1 deleted, 2 unknown (clean)
   update: 4 new changesets, 4 branch heads (merge)
   unstable: 1 changesets
-  divergent: 1 changesets
   $ qlog
   6
   - 909a0fb57e5d