vcssync: temporarily do not set convert.git.saverev (bug 1333616); r?glob draft
authorGregory Szorc <gps@mozilla.com>
Fri, 31 Mar 2017 17:12:13 -0700
changeset 10636 b5aeecff399dc71b3bf2171833a46943a7886562
parent 10635 629906224c04c4524c39376fd696630d13ce7383
child 10637 4bb796033a7fe58b1c4db94e0e530fe11a351182
push id1600
push userbmo:gps@mozilla.com
push dateMon, 03 Apr 2017 23:38:00 +0000
reviewersglob
bugs1333616
vcssync: temporarily do not set convert.git.saverev (bug 1333616); r?glob This config option was introduced in Mercurial 4.1 and has no effect on Mercurial 4.0. In order to demonstrate that the Mercurial 4.1 upgrade doesn't change tests without this option in play, this commit disables the config option so we can perform the Mercurial upgrade without extra test changes. MozReview-Commit-ID: IV9mKyyMF1l
vcssync/mozvcssync/git2hg.py
--- a/vcssync/mozvcssync/git2hg.py
+++ b/vcssync/mozvcssync/git2hg.py
@@ -155,17 +155,17 @@ def linearize_git_repo_to_hg(git_source_
     hg_config = [
         b'extensions.convert=',
         # Make the rename detection limit essentially infinite.
         b'convert.git.renamelimit=1000000000',
         # The ``convert_revision`` that would be stored reflects the rewritten
         # Git commit. This is valuable as a persistent SHA map, but that's it.
         # We (hopefully) insert the original Git commit via
         # ``source_revision_key``, so this is of marginal value.
-        b'convert.git.saverev=false',
+        #b'convert.git.saverev=false',
         b'convert.git.similarity=%d' % similarity,
     ]
 
     if find_copies_harder:
         hg_config.append(b'convert.git.findcopiesharder=true')
     if skip_submodules:
         hg_config.append(b'convert.git.skipsubmodules=true')