0
     {ˆïîô469íÁñ Õ    {‹      ¥“_o›0Åßû)îü°·pš´]k˜2@[¤üS`šªiŠ8`•`d;eÝ§„LM§dë´'Œýóñ9÷Úô�¿ð¢ûe Ÿ¢Ù–Ÿ?L'�â—KÑ�ünahõˆÁœ É�©nëº¶êKKª£æf[Q%c¥&%îmçÜ 9giój„)¸;)SþäPîŒ)âN+,DŒ…LXÁQ?®ÃÀZÞÜŒÞF8õÖ³ Çƒ�b'ÒÈâA—Æ2}j�ü¯t£°·Éâý	íP¹ÔäðÈ
‘•1²".Û´J‚"‘¥Æ¸`åƒ•‰V‡|�x‹o‡&ow»”A®øÆ!ï=g~·p|âÎÙ–Sd§™YÃŒ‰;eÚÀV¦b#xz;8?Îúãs�(Q!Ëg›ˆÇQYèŠ5YGM‚\S’þ­,yQŒåxÌ#²êJ’¶Ïî^Ý(â.™â¥_(ž©ž:Á·e¬«»_¿pp¨D–âôà$ù±våC)ëò8YSµ“™Âûp}t¯šæ¼œ86þ›S»o_õúÃž}¶};œ‹t5úC¤Wö7�âþ	Qì^ìOn6Kã    7   }ˆl–Ü4ý(”Ê:”Ú€Æ_¸ÛJbÑ¿�þE$Ž,à‡#®½#£+Àþö„]e¯õÂò -Ö    }#!/usr/bin/python3
# -*- coding: utf-8 -*-
#
#  hot-backup.py: perform a "hot" backup of a Subversion repository
#                 and clean any old Berkeley DB logfiles after the
#                 backup completes, if the repository backend is
#                 Berkeley DB.
#
#  Subversion is a tool for revision control. 
#  See http://subversion.apache.org for more information.
#    
# ====================================================================
#    Licensed to the Apache Software Foundation (ASF) under one
#    or more contributor license agreements.  See the NOTICE file
#    distributed with this work for additional information
#    regarding copyright ownership.  The ASF licenses this file
#    to you under the Apache License, Version 2.0 (the
#    "License"); you may not use this file except in compliance
#    with the License.  You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
#    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.
# ====================================================================

# $HeadURL: https://svn.apache.org/repos/asf/subversion/branches/1.14.x/tools/backup/hot-backup.py.in $
# $LastChangedDate: 2020-11-14 04:00:12 +0000 (Sat, 14 Nov 2020) $
# $LastChangedBy: svn-role $
# $LastChangedRevision: 1883406 $

######################################################################

import sys, os, getopt, stat, re, time, shutil, subprocess
import functools

######################################################################
# Global Settings

# Path to svnlook utility
svnlook = r"/usr/bin/svnlook"

# Path to svnadmin utility
svnadmin = r"/usr/bin/svnadmin"

# Default number of backups to keep around (0 for "keep them all")
num_backups = int(os.environ.get("SVN_HOTBACKUP_BACKUPS_NUMBER", 64))

# Archive types/extensions
archive_map = {
  'gz'  : ".tar.gz",
  'bz2' : ".tar.bz2",
  'zip' : ".zip",
  'zip64' : ".zip"
  }

# Chmod recursively on a whole subtree
def chmod_tree(path, mode, mask):
  for dirpath, dirs, files in os.walk(path):
    for name in dirs + files:
      fullname = os.path.join(dirpath, name)
      if not os.path.islink(fullname):
        new_mode = (os.stat(fullname)[stat.ST_MODE] & ~mask) | mode
        os.chmod(fullname, new_mode)

# For clearing away read-only directories
def safe_rmtree(dirname, retry=0):
  "Remove the tree at DIRNAME, making it writable first"
  def rmtree(dirname):
    chmod_tree(dirname, 0o666, 0o666)
    shutil.rmtree(dirname)

  if not os.path.exists(dirname):
    return

  if retry:
    for delay in (0.5, 1, 2, 4):
      try:
        rmtree(dirname)
        break
      except:
        time.sleep(delay)
    else:
      rmtree(dirname)
  else:
    rmtree(dirname)

######################################################################
# Command line arguments

def usage(out = sys.stdout):
  scriptname = os.path.basename(sys.argv[0])
  out.write(
"""USAGE: %s [OPTIONS] REPOS_PATH BACKUP_PATH

Create a backup of the repository at REPOS_PATH in a subdirectory of
the BACKUP_PATH location, named after the youngest revision.

Options:
  --archive-type=FMT Create an archive of the backup. FMT can be one of:
                       bz2  : Creates a bzip2 compressed ta