Mercurial > evolve
changeset 4120:eea339cf4d30
branching: merge with stable
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 18 Sep 2018 02:14:10 +0200 |
parents | d3ea35ad88f3 (current diff) c4b891fe44c3 (diff) |
children | 4eb3877540f1 |
files | |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/evolve/obsdiscovery.py Fri Sep 14 12:21:32 2018 +0200 +++ b/hgext3rd/evolve/obsdiscovery.py Tue Sep 18 02:14:10 2018 +0200 @@ -24,6 +24,7 @@ import hashlib import heapq +import inspect import sqlite3 import struct import weakref @@ -110,7 +111,13 @@ if len(undecided) < fullsamplesize: sample = set(undecided) else: - sample = _takefullsample(dag, undecided, size=fullsamplesize) + # Mercurial 4.8 changed calling convention. + if len(inspect.getargspec(_takefullsample)[0]) == 4: + sample = _takefullsample(local, None, undecided, + size=fullsamplesize) + else: + # hg <= 4.7 version + sample = _takefullsample(dag, undecided, size=fullsamplesize) roundtrips += 1 ui.progress(_("comparing with other"), totalnb - len(undecided),