debugobsrelsethashtree: get the command to work again
The command was untested and became broken when we introduced the new discovery
hashing.
--- 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 ..
##########################