vcssync: bump requirement to Mercurial 4.1 (bug 1333616); r?glob draft
authorGregory Szorc <gps@mozilla.com>
Fri, 31 Mar 2017 15:56:10 -0700
changeset 10638 7fb5cb4cc7039a479599293bdb51b7995be250fe
parent 10637 4bb796033a7fe58b1c4db94e0e530fe11a351182
child 10639 dc03d467e1d7c855a21f20f03bd6c93e0ae306d1
push id1600
push userbmo:gps@mozilla.com
push dateMon, 03 Apr 2017 23:38:00 +0000
reviewersglob
bugs1333616
vcssync: bump requirement to Mercurial 4.1 (bug 1333616); r?glob We currently run vcssync in production with Mercurial 4.1. Previously, the tests only ran against Mercurial 4.0 and had expectations tied to Mercurial 4.0. This notably included the expectation that "convert.git.saverev=false" is a no-op on 4.0. Since the upgrade to 4.1 in the test environment is complete, let's bump the test requirements from 4.0 to 4.1. I also snuck in a bump to the overlay extension's minimum version requirement. With "convert.git.saverev=false" being temporarily commented out, there are no test changes between 4.0 and 4.1, which of course is good. MozReview-Commit-ID: BgHeQ89VZem
hgext/overlay/__init__.py
vcssync/tests/test-linearize-git-to-hg-arg-errors.t
vcssync/tests/test-linearize-git-to-hg-basic.t
vcssync/tests/test-linearize-git-to-hg-copy-metadata.t
vcssync/tests/test-linearize-git-to-hg-move-to-subdir.t
vcssync/tests/test-linearize-git-to-hg-push-git.t
vcssync/tests/test-linearize-git-to-hg-push-hg.t
vcssync/tests/test-linearize-git-to-hg-source-annotations.t
vcssync/tests/test-overlay-hg-basic.t
vcssync/tests/test-overlay-hg-clone-missing.t
vcssync/tests/test-overlay-hg-dest-mismatch.t
vcssync/tests/test-overlay-hg-new-both.t
vcssync/tests/test-overlay-hg-new-dest.t
vcssync/tests/test-overlay-hg-new-source.t
vcssync/tests/test-overlay-hg-push-fail.t
vcssync/tests/test-overlay-hg-push-lingering.t
vcssync/tests/test-overlay-hg-push-race.t
vcssync/tests/test-overlay-hg-push-result.t
vcssync/tests/test-overlay-hg-push-unicode.t
vcssync/tests/test-overlay-hg-strip.t
vcssync/tests/test-servo-overlay-treestatus.t
--- a/hgext/overlay/__init__.py
+++ b/hgext/overlay/__init__.py
@@ -21,17 +21,17 @@ from mercurial import (
     filelog,
     hg,
     scmutil,
     store,
     util,
 )
 
 
-testedwith = '4.0'
+testedwith = '4.1'
 
 cmdtable = {}
 command = cmdutil.command(cmdtable)
 
 
 REVISION_KEY = 'subtree_revision'
 SOURCE_KEY = 'subtree_source'
 
--- a/vcssync/tests/test-linearize-git-to-hg-arg-errors.t
+++ b/vcssync/tests/test-linearize-git-to-hg-arg-errors.t
@@ -1,9 +1,9 @@
-#require hg40+
+#require hg41+
 
   $ . $TESTDIR/vcssync/tests/helpers.sh
   $ standardgitrepo grepo > /dev/null 2>&1
 
 Git source URL does not exist
 
   $ linearize-git-to-hg file://$TESTTMP/does/not/exist master dummy dummy
   Initialized empty Git repository in $TESTTMP/dummy/
--- a/vcssync/tests/test-linearize-git-to-hg-basic.t
+++ b/vcssync/tests/test-linearize-git-to-hg-basic.t
@@ -1,9 +1,9 @@
-#require hg40+
+#require hg41+
 
   $ . $TESTDIR/vcssync/tests/helpers.sh
 
   $ standardgitrepo grepo > /dev/null 2>&1
 
   $ git --git-dir grepo/.git log --graph --format=oneline
   * a447b9b0ff25bf17daab1c7edae4a998eca0adac dummy commit 1 after merge
   *   fc30a4fbd1fe16d4c84ca50119e0c404c13967a3 Merge branch 'head2'
--- a/vcssync/tests/test-linearize-git-to-hg-copy-metadata.t
+++ b/vcssync/tests/test-linearize-git-to-hg-copy-metadata.t
@@ -1,9 +1,9 @@
-#require hg40+
+#require hg41+
 
   $ . $TESTDIR/vcssync/tests/helpers.sh
 
   $ cat >> $HGRCPATH << EOF
   > [diff]
   > git = true
   > EOF
 
--- a/vcssync/tests/test-linearize-git-to-hg-move-to-subdir.t
+++ b/vcssync/tests/test-linearize-git-to-hg-move-to-subdir.t
@@ -1,9 +1,9 @@
-#require hg40+
+#require hg41+
 
   $ . $TESTDIR/vcssync/tests/helpers.sh
   $ standardgitrepo grepo > /dev/null 2>&1
 
 --move-to-subdir will move files in git repo to subdirectory in hg
 
   $ linearize-git-to-hg --move-to-subdir subdir file://$TESTTMP/grepo master grepo-source grepo-dest-0 > /dev/null 2>&1
 
--- a/vcssync/tests/test-linearize-git-to-hg-push-git.t
+++ b/vcssync/tests/test-linearize-git-to-hg-push-git.t
@@ -1,9 +1,9 @@
-#require hg40+
+#require hg41+
 
   $ . $TESTDIR/vcssync/tests/helpers.sh
 
   $ standardgitrepo grepo > /dev/null 2>&1
 
   $ git init --bare grepo-mirror
   Initialized empty Git repository in $TESTTMP/grepo-mirror/
 
--- a/vcssync/tests/test-linearize-git-to-hg-push-hg.t
+++ b/vcssync/tests/test-linearize-git-to-hg-push-hg.t
@@ -1,9 +1,9 @@
-#require hg40+
+#require hg41+
 
   $ . $TESTDIR/vcssync/tests/helpers.sh
 
   $ standardgitrepo grepo > /dev/null 2>&1
 
   $ hg init hg-mirror
 
 --hg-push-url will push the hg repo to the specified after linearizing
--- a/vcssync/tests/test-linearize-git-to-hg-source-annotations.t
+++ b/vcssync/tests/test-linearize-git-to-hg-source-annotations.t
@@ -1,9 +1,9 @@
-#require hg40+
+#require hg41+
 
   $ . $TESTDIR/vcssync/tests/helpers.sh
   $ standardgitrepo grepo > /dev/null 2>&1
 
 Note: since source repo is in $TESTTMP which is dynamic, commit SHA-1s aren't stable!
 
   $ linearize-git-to-hg --source-repo-key Source-Repo --source-revision-key Source-Revision file://$TESTTMP/grepo master grepo-source grepo-dest
   Initialized empty Git repository in $TESTTMP/grepo-source/
--- a/vcssync/tests/test-overlay-hg-basic.t
+++ b/vcssync/tests/test-overlay-hg-basic.t
@@ -1,9 +1,9 @@
-#require hg40+
+#require hg41+
 
   $ . $TESTDIR/vcssync/tests/helpers.sh
   $ standardoverlayenv > /dev/null 2>&1
 
   $ overlay-hg-repos http://localhost:$HGPORT/overlay-source http://localhost:$HGPORT/overlay-dest \
   >   repo --into subdir
   repo does not exist; cloning http://localhost:$HGPORT/overlay-dest
   requesting all changes
--- a/vcssync/tests/test-overlay-hg-clone-missing.t
+++ b/vcssync/tests/test-overlay-hg-clone-missing.t
@@ -1,9 +1,9 @@
-#require hg40+
+#require hg41+
 
   $ . $TESTDIR/vcssync/tests/helpers.sh
   $ standardoverlayenv > /dev/null 2>&1
 
 Local clone will be created if necessary
 
   $ overlay-hg-repos http://localhost:$HGPORT/overlay-source http://localhost:$HGPORT/overlay-dest \
   >   local_path --into subdir
--- a/vcssync/tests/test-overlay-hg-dest-mismatch.t
+++ b/vcssync/tests/test-overlay-hg-dest-mismatch.t
@@ -1,9 +1,9 @@
-#require hg40+
+#require hg41+
 
   $ . $TESTDIR/vcssync/tests/helpers.sh
   $ standardoverlayenv > /dev/null 2>&1
 
   $ overlay-hg-repos http://localhost:$HGPORT/overlay-source http://localhost:$HGPORT/overlay-dest \
   >   repo --into destdir > /dev/null 2>&1
 
   $ hg -R repo push
--- a/vcssync/tests/test-overlay-hg-new-both.t
+++ b/vcssync/tests/test-overlay-hg-new-both.t
@@ -1,9 +1,9 @@
-#require hg40+
+#require hg41+
 
   $ . $TESTDIR/vcssync/tests/helpers.sh
   $ standardoverlayenv > /dev/null 2>&1
 
   $ overlay-hg-repos http://localhost:$HGPORT/overlay-source http://localhost:$HGPORT/overlay-dest \
   >   repo --into subdir > /dev/null 2>&1
 
   $ hg -R repo push
--- a/vcssync/tests/test-overlay-hg-new-dest.t
+++ b/vcssync/tests/test-overlay-hg-new-dest.t
@@ -1,9 +1,9 @@
-#require hg40+
+#require hg41+
 
   $ . $TESTDIR/vcssync/tests/helpers.sh
   $ standardoverlayenv > /dev/null 2>&1
 
   $ overlay-hg-repos http://localhost:$HGPORT/overlay-source http://localhost:$HGPORT/overlay-dest \
   >   repo --into subdir > /dev/null 2>&1
 
 New changeset in dest will be pulled and overlay will reperformed on it
--- a/vcssync/tests/test-overlay-hg-new-source.t
+++ b/vcssync/tests/test-overlay-hg-new-source.t
@@ -1,9 +1,9 @@
-#require hg40+
+#require hg41+
 
   $ . $TESTDIR/vcssync/tests/helpers.sh
   $ standardoverlayenv > /dev/null 2>&1
 
   $ overlay-hg-repos http://localhost:$HGPORT/overlay-source http://localhost:$HGPORT/overlay-dest \
   >   repo --into subdir > /dev/null 2>&1
 
   $ hg -R repo push
--- a/vcssync/tests/test-overlay-hg-push-fail.t
+++ b/vcssync/tests/test-overlay-hg-push-fail.t
@@ -1,9 +1,9 @@
-#require hg40+
+#require hg41+
 
   $ . $TESTDIR/vcssync/tests/helpers.sh
   $ standardoverlayenv > /dev/null 2>&1
 
   $ overlay-hg-repos http://localhost:$HGPORT/overlay-source http://localhost:$HGPORT/overlay-dest \
   >   repo --into subdir >/dev/null 2>&1
 
 Create a server-side hook that fails the push to simulate a failure
--- a/vcssync/tests/test-overlay-hg-push-lingering.t
+++ b/vcssync/tests/test-overlay-hg-push-lingering.t
@@ -1,9 +1,9 @@
-#require hg40+
+#require hg41+
 
   $ . $TESTDIR/vcssync/tests/helpers.sh
   $ standardoverlayenv > /dev/null 2>&1
 
 Leave overlayed changesets in local repo then attempt to push in a later
 invocation. This simulates failure to push on a previous run.
 
   $ overlay-hg-repos http://localhost:$HGPORT/overlay-source http://localhost:$HGPORT/overlay-dest \
--- a/vcssync/tests/test-overlay-hg-push-race.t
+++ b/vcssync/tests/test-overlay-hg-push-race.t
@@ -1,9 +1,9 @@
-#require hg40+
+#require hg41+
 
   $ . $TESTDIR/vcssync/tests/helpers.sh
   $ standardoverlayenv > /dev/null 2>&1
 
   $ overlay-hg-repos http://localhost:$HGPORT/overlay-source http://localhost:$HGPORT/overlay-dest \
   >   repo --into subdir >/dev/null 2>&1
 
 Create a new dest-like repo and add a changeset to it.
--- a/vcssync/tests/test-overlay-hg-push-result.t
+++ b/vcssync/tests/test-overlay-hg-push-result.t
@@ -1,9 +1,9 @@
-#require hg40+
+#require hg41+
 
   $ . $TESTDIR/vcssync/tests/helpers.sh
   $ standardoverlayenv > /dev/null 2>&1
 
 --result-push-url will push results after overlay
 
   $ overlay-hg-repos http://localhost:$HGPORT/overlay-source http://localhost:$HGPORT/overlay-dest \
   >   repo --into subdir --result-push-url http://localhost:$HGPORT/overlay-dest
--- a/vcssync/tests/test-overlay-hg-push-unicode.t
+++ b/vcssync/tests/test-overlay-hg-push-unicode.t
@@ -1,9 +1,9 @@
-#require hg40+
+#require hg41+
 
   $ . $TESTDIR/vcssync/tests/helpers.sh
   $ standardoverlayenv > /dev/null 2>&1
 
 Test unicode in commit descriptions
 
   $ cd server/overlay-source
   $ echo 1 > file2
--- a/vcssync/tests/test-overlay-hg-strip.t
+++ b/vcssync/tests/test-overlay-hg-strip.t
@@ -1,9 +1,9 @@
-#require hg40+
+#require hg41+
 
   $ . $TESTDIR/vcssync/tests/helpers.sh
   $ standardoverlayenv > /dev/null 2>&1
 
 Seed local clone
 
   $ overlay-hg-repos http://localhost:$HGPORT/overlay-source http://localhost:$HGPORT/overlay-dest \
   >   repo --into subdir > /dev/null 2>&1
--- a/vcssync/tests/test-servo-overlay-treestatus.t
+++ b/vcssync/tests/test-servo-overlay-treestatus.t
@@ -1,9 +1,9 @@
-#require hg40+
+#require hg41+
 
   $ . $TESTDIR/vcssync/tests/helpers.sh
   $ standardoverlayenv > /dev/null 2>&1
 
 test tree open
 
   $ TEST_TREESTATUS=open TEST_NOVENDOR=1 \
   >   servo-overlay http://localhost:$HGPORT/overlay-source \