changeset 1279:064cf9ee4460 stable

debugobsrelsethashtree: get the command to work again The command was untested and became broken when we introduced the new discovery hashing.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Wed, 22 Apr 2015 14:30:23 +0200
parents 5ff8a5d85b2b
children af7b455a7ebd
files README hgext/evolve.py tests/test-evolve.t
diffstat 3 files changed, 12 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/README	Tue Apr 21 16:52:08 2015 +0200
+++ b/README	Wed Apr 22 14:30:23 2015 +0200
@@ -56,6 +56,7 @@
 - significant documentation update
 - fix issue4616: pulling with bundle2 would crash if common marker when
   discovered on non-served changesets.
+- fix the debugobsrelsethashtree command
 
 5.1.3 -- 2015-04-20
 
--- a/hgext/evolve.py	Tue Apr 21 16:52:08 2015 +0200
+++ b/hgext/evolve.py	Wed Apr 22 14:30:23 2015 +0200
@@ -2836,7 +2836,6 @@
     else:
         treefunc = _obsrelsethashtreefm1
 
-    treefunc = _obsrelsethashtree
     for chg, obs in treefunc(repo):
         ui.status('%s %s\n' % (node.hex(chg), node.hex(obs)))
 
--- a/tests/test-evolve.t	Tue Apr 21 16:52:08 2015 +0200
+++ b/tests/test-evolve.t	Wed Apr 22 14:30:23 2015 +0200
@@ -102,6 +102,17 @@
   working directory now at 7c3bad9141dc
   $ hg st
   A g
+
+Smoketest debugobsrelsethashtree:
+
+  $ hg debugobsrelsethashtree
+  1f0dee641bb7258c56bd60e93edfa2405381c41e 0000000000000000000000000000000000000000
+  7c3bad9141dcb46ff89abf5f61856facd56e476c * (glob)
+  4538525df7e2b9f09423636c61ef63a4cb872a2d * (glob)
+  47d2a3944de8b013de3be9578e8e344ea2e6c097 * (glob)
+  fbb94e3a0ecf6d20c2cc31152ef162ce45af982f * (glob)
+  e44648563c73f75950076031c6fdf06629de95f1 * (glob)
+
   $ cd ..
 
 ##########################