1
  L   ˆl–Ým_JJi?u8 ¸&î	¥1hß�þB g�²ð$“ùÆƒh¹Åa–Ým_JJi?u8 ¸Ë7
˜´oÄ      00000028
  $   H403239_•I|¥‰ÓMjqØ‚¦ ë<óo¬ÀÆ  ï    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access this resource.</p>
</body></html>
     	ˆÅÄÈ514ÃÀÆ     	‹      Õ•]oÚ0†ïû+<_ì_«´ÖñÔ¤¡Q@”iš¦©rC,;²cì×Ï!t¥h›ö!qÇoÎ{žÙfÏâIþa: oæ·#2}÷z4ìÚ xßíÄó¸^è5[m€Á˜š!–W ›Í¦¹é6­[Â|y<:-±™bJù«ÞñÂ2%Ò0†sÅ‡&U_ˆ]°kô:U=(�•àU¾ g-‚ßz�¹ð’ÜÊäÖ–ðë$, *vóK@'¤bP'6°÷a‰M·•}ûo[…Œ;‘ì«Ðq†ù,r½4E[RÎt±$ÞÉˆ‚–ÖT™…Y5—zA‰È1¢‡ýÉ§ Ìª¯9$sjÑWýh|=‰bÊÇ¢~â¸æ6hn(	�¤°©^h•žßÕâ;ýõtÂ¸ÖÄÊK§KÔÖ<JûTis_ŠÀú"dîPUKÒŸuCÈ'Í˜ÞÌãy<œÕ-I«�Õýá�£|*œ2Hbí”Dë¶{²Úæ¹I|yý0%ûº�^fH9!rTù°k³2vcyC/�’
‰÷…ð+Ê¢ÃR¨­Óê\6ÚíF§CZ/¯º]BNÃ¾}û!”©öåõx– é}žˆŠ`œ!B©ÃégXºGá°îÿ÷ðßcüâéûsŸÁî‚aPßoß P�jB       ˆÅÄÈ514ÃÀÆ     ‹      ½”ÑnÓ0†ï÷ÆÜ%§éÊ@›M%ªumÕB9±›˜¥vd»tãéç4™š¡VcbpÛùòû|'‰É‹x6L¾ÌGèCr9Aó�ï'ã!ÂÀ§ã!@œÄÍ��ß FSŒpamu
°ÙlüÍ±¯tÉ
»*`¬™õ™e8:"õZt„HÁ)sWD¬°%�Æ’ñ¤–ÔÚÁø ÖFƒ)¨æ ãßWŠ­Knà]JS^BÁËŠk&Ó¢²†@“ã’¡�&©b·õŽÁ3¤»�m±4ÝnRuDl�~ÒRä2ÄVU8"b•#£³ƒÈ”4�–T^û¹XbDKâ¯ãáì›ãÀõÓ¡¨Ð|â·Ãpz6Ïq4¥+N€îg.fB�E®d±œ„¯øJü:7LÌS¡ä§ØUÍTi*ê\_9ƒBw©a�uƒfš1?_Œ¦I<^4-auÄ®º§¾+Í"-Š…æ™Uú¶Uir_ÊÔTg÷SÔªE^X!ä¡½äìÖòZª�ì
ºæíU«\#hÎýFIugÝ’«±ßë¼Þ‰œ ^p:x�Ð!™~ð×2–ßØ®Iò9Ùk’sÉ5µÜÓ¼*íéµ´bUáèà9|ÿÍÅ÷m¿º‡Ž»Åïõ‡?&´G�íqH 9€ï Fïúã    C   ˆl–äY>”ÊeJeA3p\eÅ1hß�þ[(ZY¹Død+/HèüÿÊ„@y¯É_ŠI|¥�+Wé3ž¯ÂÈ ?÷     # test_walk.py -- Tests for commit walking functionality.
# Copyright (C) 2010 Google, Inc.
#
# Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
# General Public License as public by the Free Software Foundation; version 2.0
# or (at your option) any later version. You can redistribute it and/or
# modify it under the terms of either of these two licenses.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# You should have received a copy of the licenses; if not, see
# <http://www.gnu.org/licenses/> for a copy of the GNU General Public License
# and <http://www.apache.org/licenses/LICENSE-2.0> for a copy of the Apache
# License, Version 2.0.
#

"""Tests for commit walking functionality."""

from itertools import (
    permutations,
)
from unittest import expectedFailure

from dulwich.diff_tree import (
    CHANGE_MODIFY,
    CHANGE_RENAME,
    TreeChange,
    RenameDetector,
)
from dulwich.errors import (
    MissingCommitError,
)
from dulwich.object_store import (
    MemoryObjectStore,
)
from dulwich.objects import (
    Commit,
    Blob,
)
from dulwich.walk import ORDER_TOPO, WalkEntry, Walker, _topo_reorder
from dulwich.tests import TestCase
from dulwich.tests.utils import (
    F,
    make_object,
    make_tag,
    build_commit_graph,
)


class TestWalkEntry:
    def __init__(self, commit, changes):
        self.commit = commit
        self.changes = changes

    def __repr__(self):
        return "<TestWalkEntry commit={}, changes={!r}>".format(
            self.commit.id,
            self.changes,
        )

    def __eq__(self, other):
        if not isinstance(other, WalkEntry) or self.commit != other.commit:
            return False
        if self.changes is None:
            return True
        return self.changes == other.changes()


class WalkerTest(TestCase):
    def setUp(self):
        super().setUp()
        self.store = MemoryObjectStore()

    def make_commits(self, commit_spec, **kwargs):
        times = kwargs.pop("times", [])
        attrs = kwargs.pop("attrs", {})
        for i, t in enumerate(times):
            attrs.setdefault(i + 1, {})["commit_time"] = t
        return build_commit_graph(self.store, commit_spec, attrs=attrs, **kwargs)

    def make_linear_commi