stablerange: stop using '.head' in debugstablerange
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Wed, 22 Mar 2017 17:43:18 +0100
changeset 2150 0a95e8518941
parent 2149 a2f45d0dd0ed
child 2151 30a949036e1b
stablerange: stop using '.head' in debugstablerange We now access '[0]' as we'll do with the future tuple.
hgext3rd/evolve/obsdiscovery.py
--- a/hgext3rd/evolve/obsdiscovery.py	Wed Mar 22 17:38:28 2017 +0100
+++ b/hgext3rd/evolve/obsdiscovery.py	Wed Mar 22 17:43:18 2017 +0100
@@ -400,7 +400,7 @@
     ranges = stablerange.subrangesclosure(repo, revs)
     ui.status('rev         node index size depth      obshash\n')
     for r in ranges:
-        d = (r.head,
+        d = (r[0],
              s(cl.node(r[0])),
              r.index,
              len(r),