changeset 5047 | a8ac174010a5 |
parent 5046 | ebd0f5c6098f |
child 5193 | a4d081923c81 |
--- a/hgext3rd/pullbundle.py Fri Dec 20 13:50:31 2019 +0700 +++ b/hgext3rd/pullbundle.py Fri Dec 20 14:08:37 2019 +0700 @@ -592,6 +592,7 @@ def takeonesample(repo, revs): node = repo.changelog.node + revs = list(revs) pulled = random.sample(revs, max(4, len(revs) // 1000)) pulled = repo.revs(b'%ld::%ld', pulled, pulled) nodes = [node(r) for r in pulled]