tests: remove obsolete PYTHONPATH override from remotefilelog tests
They were added in
https://bitbucket.org/facebook/hg-experimental/commits/
fdcad37a6a68cfbaf5920f3eeaa0cc9cae42bd26,
which says this:
When remotefilelog moved from its own repo, the tests needed to be updated to
adjust the PYTHONPATH to ensure the in-repo remotefilelog was loaded instead of
the system one.
This meant any local runs of remotefilelog tests would've been using the system
remotefilelog unless the user had manually set the PYTHONPATH themselves.
That doesn't seem relevant with remotefilelog in core.
Differential Revision: https://phab.mercurial-scm.org/D5248
--- a/tests/test-remotefilelog-bad-configs.t Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-bad-configs.t Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
- $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
- $ export PYTHONPATH
-
$ . "$TESTDIR/remotefilelog-library.sh"
$ hg init master
--- a/tests/test-remotefilelog-bgprefetch.t Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-bgprefetch.t Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
- $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
- $ export PYTHONPATH
-
$ . "$TESTDIR/remotefilelog-library.sh"
$ hg init master
--- a/tests/test-remotefilelog-blame.t Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-blame.t Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
- $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
- $ export PYTHONPATH
-
$ . "$TESTDIR/remotefilelog-library.sh"
$ hg init master
--- a/tests/test-remotefilelog-bundle2-legacy.t Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-bundle2-legacy.t Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
- $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
- $ export PYTHONPATH
-
$ . "$TESTDIR/remotefilelog-library.sh"
generaldelta to generaldelta interactions with bundle2 but legacy clients
--- a/tests/test-remotefilelog-bundle2.t Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-bundle2.t Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
- $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
- $ export PYTHONPATH
-
$ . "$TESTDIR/remotefilelog-library.sh"
$ hg init master
--- a/tests/test-remotefilelog-bundles.t Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-bundles.t Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
- $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
- $ export PYTHONPATH
-
$ . "$TESTDIR/remotefilelog-library.sh"
$ hg init master
--- a/tests/test-remotefilelog-cacheprocess.t Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-cacheprocess.t Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
- $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
- $ export PYTHONPATH
-
$ . "$TESTDIR/remotefilelog-library.sh"
$ hg init repo
--- a/tests/test-remotefilelog-clone-tree.t Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-clone-tree.t Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
- $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
- $ export PYTHONPATH
-
$ . "$TESTDIR/remotefilelog-library.sh"
$ hg init master
--- a/tests/test-remotefilelog-clone.t Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-clone.t Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
- $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
- $ export PYTHONPATH
-
$ . "$TESTDIR/remotefilelog-library.sh"
$ hg init master
--- a/tests/test-remotefilelog-corrupt-cache.t Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-corrupt-cache.t Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
- $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
- $ export PYTHONPATH
-
$ . "$TESTDIR/remotefilelog-library.sh"
$ hg init master
--- a/tests/test-remotefilelog-gc.t Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-gc.t Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
- $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
- $ export PYTHONPATH
-
$ . "$TESTDIR/remotefilelog-library.sh"
$ hg init master
--- a/tests/test-remotefilelog-gcrepack.t Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-gcrepack.t Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
- $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
- $ export PYTHONPATH
-
$ . "$TESTDIR/remotefilelog-library.sh"
$ hg init master
--- a/tests/test-remotefilelog-http.t Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-http.t Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
- $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
- $ export PYTHONPATH
-
$ . "$TESTDIR/remotefilelog-library.sh"
$ hg init master
--- a/tests/test-remotefilelog-keepset.t Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-keepset.t Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
- $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
- $ export PYTHONPATH
-
$ . "$TESTDIR/remotefilelog-library.sh"
$ hg init master
--- a/tests/test-remotefilelog-linknodes.t Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-linknodes.t Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
- $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
- $ export PYTHONPATH
-
# Tests for the complicated linknode logic in remotefilelog.py::ancestormap()
$ . "$TESTDIR/remotefilelog-library.sh"
--- a/tests/test-remotefilelog-local.t Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-local.t Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
- $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
- $ export PYTHONPATH
-
$ . "$TESTDIR/remotefilelog-library.sh"
$ hg init master
--- a/tests/test-remotefilelog-log.t Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-log.t Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
- $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
- $ export PYTHONPATH
-
$ . "$TESTDIR/remotefilelog-library.sh"
$ hg init master
--- a/tests/test-remotefilelog-partial-shallow.t Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-partial-shallow.t Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
- $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
- $ export PYTHONPATH
-
$ . "$TESTDIR/remotefilelog-library.sh"
$ hg init master
--- a/tests/test-remotefilelog-permissions.t Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-permissions.t Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
- $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
- $ export PYTHONPATH
-
$ . "$TESTDIR/remotefilelog-library.sh"
$ hg init master
--- a/tests/test-remotefilelog-prefetch.t Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-prefetch.t Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
- $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
- $ export PYTHONPATH
-
$ . "$TESTDIR/remotefilelog-library.sh"
$ hg init master
--- a/tests/test-remotefilelog-pull-noshallow.t Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-pull-noshallow.t Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
- $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
- $ export PYTHONPATH
-
$ . "$TESTDIR/remotefilelog-library.sh"
Set up an extension to make sure remotefilelog clientsetup() runs
--- a/tests/test-remotefilelog-push-pull.t Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-push-pull.t Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
- $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
- $ export PYTHONPATH
-
$ . "$TESTDIR/remotefilelog-library.sh"
$ hg init master
--- a/tests/test-remotefilelog-repack-fast.t Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-repack-fast.t Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
- $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
- $ export PYTHONPATH
-
$ . "$TESTDIR/remotefilelog-library.sh"
$ cat >> $HGRCPATH <<EOF
--- a/tests/test-remotefilelog-repack.t Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-repack.t Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
- $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
- $ export PYTHONPATH
-
$ . "$TESTDIR/remotefilelog-library.sh"
$ hg init master
--- a/tests/test-remotefilelog-sparse.t Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-sparse.t Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
- $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
- $ export PYTHONPATH
-
$ . "$TESTDIR/remotefilelog-library.sh"
$ hg init master
--- a/tests/test-remotefilelog-tags.t Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-tags.t Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
- $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
- $ export PYTHONPATH
-
$ . "$TESTDIR/remotefilelog-library.sh"
$ hg init master
--- a/tests/test-remotefilelog-wireproto.t Fri Nov 09 08:19:08 2018 -0800
+++ b/tests/test-remotefilelog-wireproto.t Fri Nov 09 09:27:37 2018 -0800
@@ -1,6 +1,3 @@
- $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
- $ export PYTHONPATH
-
$ . "$TESTDIR/remotefilelog-library.sh"
$ hg init master