0
  
   	Á239ÀÃÂ  ï    	<!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>
      ˆ¾‘äÇò 8à_Ù)_þÅƒh¹ÄÃÂ      0
  5   ˆl–ßi~” T¾R( 	Å+‚nà^S�ÿ�þB gá|¯ep_ÏÆƒh¹ÅÄÃ      disabled
  C   ˆl–Ü4ý( ©”u( 	•íÀà™S�ÿ�þBû }fåƒJ@?Ç„Æ_ŠI|¥�+Wé3ž¯ÆÅ ?÷     # Copyright (C) 2006-2011 Canonical Ltd
# Copyright (C) 2020 Breezy Developers
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

import contextlib
import errno
import os
from stat import S_IEXEC, S_ISREG
import tempfile
import time

from .. import (
    annotate,
    conflicts,
    controldir,
    errors,
    lock,
    multiparent,
    osutils,
    revision as _mod_revision,
    trace,
    transport as _mod_transport,
    tree,
    ui,
    urlutils,
    )

from ..filters import filtered_output_bytes, ContentFilterContext
from ..i18n import gettext
from ..mutabletree import MutableTree
from ..progress import ProgressPhase
from ..transform import (
    ROOT_PARENT,
    _FileMover,
    _TransformResults,
    joinpath,
    NoFinalPath,
    FinalPaths,
    unique_add,
    TreeTransform,
    TransformRenameFailed,
    ImmortalLimbo,
    ReusingTransform,
    MalformedTransform,
    PreviewTree,
    new_by_entry,
    _reparent_children,
    resolve_conflicts,
    )
from ..tree import find_previous_path
from .conflicts import Conflict

from . import (
    inventory,
    inventorytree,
    )


def _content_match(tree, entry, tree_path, kind, target_path):
    if entry.kind != kind:
        return False
    if entry.kind == "directory":
        return True
    if entry.kind == "file":
        with open(target_path, 'rb') as f1, \
                tree.get_file(tree_path) as f2:
            if osutils.compare_files(f1, f2):
                return True
    elif entry.kind == "symlink":
        if tree.get_symlink_target(tree_path) == os.readlink(target_path):
            return True
    return False


class TreeTransformBase(TreeTransform):
    """The base class for TreeTransform and its kin."""

    def __init__(self, tree, pb=None, case_sensitive=True):
        """Constructor.

        :param tree: The tree that will be transformed, but not necessarily
            the output tree.
        :param pb: ignored
        :param case_sensitive: If True, the target of the transform is
            case sensitive, not just case preserving.
        """
        super().__init__(tree, pb=pb)
        # mapping of trans_id => (sha1 of content, stat_value)
        self._observed_sha1s = {}
        # Mapping of trans_id -> new file_id
        self._new_id = {}
        # Mapping of old file-id -> trans_id
        self._non_present_ids = {}
        # Mapping of new file_id -> trans_id
        self._r_new_id = {}
        # The trans_id that will be used as the tree root
        if tree.is_versioned(''):
            self._new_root = self.trans_id_tree_path('')
        else:
            self._new_root = None
        # Whether the target is case sensitive
        self._case_sensitive_target = case_sensitive

    def finalize(self):
        """Release the working tree lock, if held.

        This is required if apply has not been invoked, but can be invoked
        even after apply.
        """
        if self._tree is None:
          