From b7ec4892d93a8154aa4b277f20b52815ca66cee7 Mon Sep 17 00:00:00 2001 From: Andrey Chursin Date: Wed, 12 May 2021 18:17:56 -0700 Subject: [PATCH] commitcloud: fix doctest Summary: D28351849 (https://github.com/facebookexperimental/eden/commit/2c3edb098903242754b07de562619e56905325e5) broke doctest, this diff attempts to fix it Reviewed By: quark-zju Differential Revision: D28392077 fbshipit-source-id: 7f1f7261d8996b2c808399954fc895eccc2c1c06 --- eden/scm/edenscm/hgext/commitcloud/sync.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/eden/scm/edenscm/hgext/commitcloud/sync.py b/eden/scm/edenscm/hgext/commitcloud/sync.py index cf55711cb6..e37bb29eb8 100644 --- a/eden/scm/edenscm/hgext/commitcloud/sync.py +++ b/eden/scm/edenscm/hgext/commitcloud/sync.py @@ -657,15 +657,15 @@ def _partitionheadsgroups(heads, headdates=None, sizelimit=4, spanlimit=86400): different synced machines. This may mean potential groups get split up if a head with a different date is in the middle. - >>> _partitionheads([1, 2, 3, 4], {1: 1, 2: 2, 3: 3, 4: 4}, sizelimit=2, spanlimit=10) + >>> _partitionheadsgroups([1, 2, 3, 4], {1: 1, 2: 2, 3: 3, 4: 4}, sizelimit=2, spanlimit=10) [[1, 2], [3, 4]] - >>> _partitionheads([1, 2, 3, 4], {1: 10, 2: 20, 3: 30, 4: 40}, sizelimit=4, spanlimit=10) + >>> _partitionheadsgroups([1, 2, 3, 4], {1: 10, 2: 20, 3: 30, 4: 40}, sizelimit=4, spanlimit=10) [[1, 2], [3, 4]] - >>> _partitionheads([1, 2, 3, 4], {1: 10, 2: 20, 3: 30, 4: 40}, sizelimit=4, spanlimit=30) + >>> _partitionheadsgroups([1, 2, 3, 4], {1: 10, 2: 20, 3: 30, 4: 40}, sizelimit=4, spanlimit=30) [[1, 2, 3, 4]] - >>> _partitionheads([1, 2, 3, 4], {1: 10, 2: 20, 3: 30, 4: 40}, sizelimit=4, spanlimit=5) + >>> _partitionheadsgroups([1, 2, 3, 4], {1: 10, 2: 20, 3: 30, 4: 40}, sizelimit=4, spanlimit=5) [[1], [2], [3], [4]] - >>> _partitionheads([1, 2, 3, 9, 4], {1: 10, 2: 20, 3: 30, 4: 40, 9: 90}, sizelimit=8, spanlimit=30) + >>> _partitionheadsgroups([1, 2, 3, 9, 4], {1: 10, 2: 20, 3: 30, 4: 40, 9: 90}, sizelimit=8, spanlimit=30) [[1, 2, 3], [9], [4]] """ headdates = headdates or {}