scripts: remove code for special handling of generaldelta; r=sheehan
authorGregory Szorc <gps@mozilla.com>
Fri, 20 Apr 2018 14:03:39 -0700
changeset 5858 bd13917afa61
parent 5857 a73495cad23b
child 5859 2531f3f69030
push id2719
push usergszorc@mozilla.com
push date2018-04-20 21:03 +0000
reviewerssheehan
scripts: remove code for special handling of generaldelta; r=sheehan generaldelta has been the default for new Mercurial repos for probably 2 years now. Setting format.generaldelta=true had no effect because it was redundant with the default. So stop doing that. Differential Revision: https://phabricator.services.mozilla.com/D987
scripts/sync-hg-repos-from-manifest
--- a/scripts/sync-hg-repos-from-manifest
+++ b/scripts/sync-hg-repos-from-manifest
@@ -44,18 +44,16 @@ class CloneError(Exception):
 
 def clone_or_pull(rel, path, requires, url, user, group):
     is_clone = False
 
     try:
         if not os.path.exists(path):
             is_clone = True
             args = [HG, 'init', path]
-            if 'generaldelta' in requires:
-                args.extend(['--config', 'format.generaldelta=true'])
 
             print('creating empty repo: %s' % path)
             subprocess.check_output(args, cwd='/', stderr=subprocess.STDOUT)
 
         # Disable clonebundles to ensure the client doesn't use stream clone and
         # recreates the store and revlogs from scratch.
         args = [HG, '--config', 'ui.clonebundles=false', '-R', path, 'pull', url]
         subprocess.check_output(args, cwd='/', stderr=subprocess.STDOUT)