Submitter | phabricator |
---|---|
Date | Nov. 25, 2017, 4:30 a.m. |
Message ID | <3b1b08473e21fab9a564a10650c8bbfb@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/25742/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/mercurial/hbisect.py b/mercurial/hbisect.py --- a/mercurial/hbisect.py +++ b/mercurial/hbisect.py @@ -38,7 +38,7 @@ def buildancestors(bad, good): badrev = min([changelog.rev(n) for n in bad]) - ancestors = [None] * (len(changelog) + 1) + ancestors = collections.defaultdict(lambda: None) for rev in repo.revs("descendants(%ln) - ancestors(%ln)", good, good): ancestors[rev] = [] if ancestors[badrev] is None: