mirror of
https://github.com/facebook/sapling.git
synced 2025-01-08 14:46:47 +03:00
codemod: drop hacks changing PYTHONPATH in tests
Summary: Now they are unnecessary since `run-tests.py` will set up `PYTONPATH` correctly. Differential Revision: D6865042 fbshipit-source-id: ca95314f725968e14349a9d916434aa832c596f9
This commit is contained in:
parent
d61006b81f
commit
1cde63d99c
@ -167,9 +167,6 @@ New errors are not allowed. Warnings are strongly discouraged.
|
||||
Skipping tests/comprehensive/test-hgsubversion-verify-and-startrev.py it has no-che?k-code (glob)
|
||||
Skipping tests/conduithttp.py it has no-che?k-code (glob)
|
||||
Skipping tests/fixtures/rsvn.py it has no-che?k-code (glob)
|
||||
tests/test-fb-hgext-myparent.t:56:
|
||||
> $ hg help templates | grep -A2 myparent
|
||||
don't use grep's context flags
|
||||
Skipping tests/test-fb-hgext-remotefilelog-bad-configs.t it has no-che?k-code (glob)
|
||||
tests/test-hggit-git-submodules.t:61:
|
||||
> $ grep 'submodule "subrepo2"' -A2 .gitmodules > .gitmodules-new
|
||||
|
@ -1,4 +1,4 @@
|
||||
#require test-repo execbit hg10
|
||||
#require test-repo execbit hg10 slow
|
||||
|
||||
$ . "$TESTDIR/helpers-testrepo.sh"
|
||||
$ cd "`dirname "$TESTDIR"`"
|
||||
|
@ -291,24 +291,20 @@ outputs, which should be fixed later.
|
||||
hgext/tweakdefaults.py:1058: multiple imported names: msvcrt, _subprocess
|
||||
hgext/undo.py:39: symbol import follows non-symbol import: mercurial.node
|
||||
tests/getflogheads.py:3: symbol import follows non-symbol import: mercurial.i18n
|
||||
tests/test-fb-hgext-cstore-datapackstore.py:17: imports not lexically sorted: pythonpath < silenttestrunner
|
||||
tests/test-fb-hgext-cstore-datapackstore.py:20: direct symbol import datapackstore from hgext.extlib.cstore
|
||||
tests/test-fb-hgext-cstore-datapackstore.py:24: direct symbol import fastdatapack, mutabledatapack from hgext.remotefilelog.datapack
|
||||
tests/test-fb-hgext-cstore-datapackstore.py:30: imports not lexically sorted: mercurial.ui < pythonpath
|
||||
tests/test-fb-hgext-cstore-uniondatapackstore.py:16: imports not lexically sorted: pythonpath < silenttestrunner
|
||||
tests/test-fb-hgext-cstore-uniondatapackstore.py:19: direct symbol import datapackstore, uniondatapackstore from hgext.extlib.cstore
|
||||
tests/test-fb-hgext-cstore-uniondatapackstore.py:24: direct symbol import datapack, mutabledatapack from hgext.remotefilelog.datapack
|
||||
tests/test-fb-hgext-cstore-uniondatapackstore.py:30: symbol import follows non-symbol import: mercurial.node
|
||||
tests/test-fb-hgext-cstore-uniondatapackstore.py:31: imports not lexically sorted: mercurial.ui < pythonpath
|
||||
tests/test-fb-hgext-remotefilelog-datapack.py:19: imports not lexically sorted: pythonpath < silenttestrunner
|
||||
tests/test-fb-hgext-remotefilelog-datapack.py:22: direct symbol import datapack, datapackstore, fastdatapack, mutabledatapack from hgext.remotefilelog.datapack
|
||||
tests/test-fb-hgext-remotefilelog-datapack.py:28: direct symbol import SMALLFANOUTCUTOFF, SMALLFANOUTPREFIX, LARGEFANOUTPREFIX from hgext.remotefilelog.basepack
|
||||
tests/test-fb-hgext-remotefilelog-datapack.py:28: imports from hgext.remotefilelog.basepack not lexically sorted: LARGEFANOUTPREFIX < SMALLFANOUTPREFIX
|
||||
tests/test-fb-hgext-remotefilelog-datapack.py:35: symbol import follows non-symbol import: mercurial.node
|
||||
tests/test-fb-hgext-remotefilelog-datapack.py:36: imports not lexically sorted: mercurial.ui < pythonpath
|
||||
tests/test-fb-hgext-remotefilelog-histpack.py:18: imports not lexically sorted: pythonpath < silenttestrunner
|
||||
tests/test-fb-hgext-remotefilelog-histpack.py:21: direct symbol import historypack, mutablehistorypack from hgext.remotefilelog.historypack
|
||||
tests/test-fb-hgext-remotefilelog-histpack.py:24: imports not lexically sorted: mercurial.ui < pythonpath
|
||||
tests/test-fb-hgext-remotefilelog-histpack.py:26: direct symbol import SMALLFANOUTCUTOFF, LARGEFANOUTPREFIX from hgext.remotefilelog.basepack
|
||||
tests/test-fb-hgext-remotefilelog-histpack.py:26: imports from hgext.remotefilelog.basepack not lexically sorted: LARGEFANOUTPREFIX < SMALLFANOUTCUTOFF
|
||||
tests/test-fb-hgext-cstore-datapackstore.py:13: direct symbol import datapackstore from hgext.extlib.cstore
|
||||
tests/test-fb-hgext-cstore-datapackstore.py:17: direct symbol import fastdatapack, mutabledatapack from hgext.remotefilelog.datapack
|
||||
tests/test-fb-hgext-cstore-datapackstore.py:23: imports not lexically sorted: mercurial.ui < silenttestrunner
|
||||
tests/test-fb-hgext-cstore-uniondatapackstore.py:12: direct symbol import datapackstore, uniondatapackstore from hgext.extlib.cstore
|
||||
tests/test-fb-hgext-cstore-uniondatapackstore.py:17: direct symbol import datapack, mutabledatapack from hgext.remotefilelog.datapack
|
||||
tests/test-fb-hgext-cstore-uniondatapackstore.py:23: symbol import follows non-symbol import: mercurial.node
|
||||
tests/test-fb-hgext-cstore-uniondatapackstore.py:24: imports not lexically sorted: mercurial.ui < silenttestrunner
|
||||
tests/test-fb-hgext-remotefilelog-datapack.py:16: direct symbol import datapack, datapackstore, fastdatapack, mutabledatapack from hgext.remotefilelog.datapack
|
||||
tests/test-fb-hgext-remotefilelog-datapack.py:22: direct symbol import SMALLFANOUTCUTOFF, SMALLFANOUTPREFIX, LARGEFANOUTPREFIX from hgext.remotefilelog.basepack
|
||||
tests/test-fb-hgext-remotefilelog-datapack.py:22: imports from hgext.remotefilelog.basepack not lexically sorted: LARGEFANOUTPREFIX < SMALLFANOUTPREFIX
|
||||
tests/test-fb-hgext-remotefilelog-datapack.py:29: symbol import follows non-symbol import: mercurial.node
|
||||
tests/test-fb-hgext-remotefilelog-datapack.py:30: imports not lexically sorted: mercurial.ui < silenttestrunner
|
||||
tests/test-fb-hgext-remotefilelog-histpack.py:15: direct symbol import historypack, mutablehistorypack from hgext.remotefilelog.historypack
|
||||
tests/test-fb-hgext-remotefilelog-histpack.py:18: imports not lexically sorted: mercurial.ui < silenttestrunner
|
||||
tests/test-fb-hgext-remotefilelog-histpack.py:20: direct symbol import SMALLFANOUTCUTOFF, LARGEFANOUTPREFIX from hgext.remotefilelog.basepack
|
||||
tests/test-fb-hgext-remotefilelog-histpack.py:20: imports from hgext.remotefilelog.basepack not lexically sorted: LARGEFANOUTPREFIX < SMALLFANOUTCUTOFF
|
||||
[1]
|
||||
|
@ -1,4 +1,4 @@
|
||||
#require test-repo hg10
|
||||
#require test-repo hg10 slow
|
||||
|
||||
$ . "$TESTDIR/helpers-testrepo.sh"
|
||||
$ cd "`dirname "$TESTDIR"`"
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/../:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ cat >> $HGRCPATH << EOF
|
||||
> [extensions]
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/../:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ cat >> $HGRCPATH << EOF
|
||||
> [diff]
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/../:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ cat >> $HGRCPATH << EOF
|
||||
> [extensions]
|
||||
|
@ -2,21 +2,14 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
import hashlib
|
||||
import os
|
||||
import random
|
||||
import shutil
|
||||
import sys
|
||||
import tempfile
|
||||
import time
|
||||
import unittest
|
||||
|
||||
import silenttestrunner
|
||||
|
||||
# Load the local cstore, not the system one
|
||||
sys.path[0:0] = [os.path.join(os.path.dirname(__file__), '..')]
|
||||
import pythonpath
|
||||
pythonpath.setcstorepath()
|
||||
|
||||
from hgext.extlib.cstore import (
|
||||
datapackstore,
|
||||
)
|
||||
|
@ -1,16 +1,9 @@
|
||||
#!/usr/bin/env python2.7
|
||||
from __future__ import absolute_import
|
||||
|
||||
import os
|
||||
import random
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
# Add the repo root to the path so we can find the built ctreemanifest
|
||||
sys.path[0:0] = [os.path.join(os.path.dirname(__file__), '..')]
|
||||
import pythonpath
|
||||
pythonpath.setcstorepath()
|
||||
|
||||
from mercurial.node import hex, nullid
|
||||
|
||||
import silenttestrunner
|
||||
|
@ -2,20 +2,13 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
import hashlib
|
||||
import os
|
||||
import random
|
||||
import shutil
|
||||
import sys
|
||||
import tempfile
|
||||
import unittest
|
||||
|
||||
import silenttestrunner
|
||||
|
||||
# Load the local cstore, not the system one
|
||||
sys.path[0:0] = [os.path.join(os.path.dirname(__file__), '..')]
|
||||
import pythonpath
|
||||
pythonpath.setcstorepath()
|
||||
|
||||
from hgext.extlib.cstore import (
|
||||
datapackstore,
|
||||
uniondatapackstore,
|
||||
|
@ -1,7 +1,5 @@
|
||||
Load extensions
|
||||
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
$ cat >> $HGRCPATH << EOF
|
||||
> [extensions]
|
||||
> arcconfig=$TESTDIR/../hgext/extlib/phabricator/arcconfig.py
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ cat >> $HGRCPATH << EOF
|
||||
> [extensions]
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ cat >> $HGRCPATH << EOF
|
||||
> [extensions]
|
||||
|
@ -1,7 +1,5 @@
|
||||
(this file is backported from core hg tests/test-annotate.t)
|
||||
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ cat >> $HGRCPATH << EOF
|
||||
> [diff]
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ cat >> $HGRCPATH << EOF
|
||||
> [extensions]
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ cat >> $HGRCPATH << EOF
|
||||
> [ui]
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/../:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ cat >> $HGRCPATH << EOF
|
||||
> [extensions]
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ cat >> $HGRCPATH << EOF
|
||||
> [extensions]
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ cat >> $HGRCPATH << EOF
|
||||
> [extensions]
|
||||
|
@ -1,7 +1,5 @@
|
||||
Setup
|
||||
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
Check diagnosis, debugging information
|
||||
1) Setup configuration
|
||||
|
@ -1,7 +1,5 @@
|
||||
Setup
|
||||
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
Check diagnosis, debugging information
|
||||
1) Setup configuration
|
||||
|
@ -1,7 +1,5 @@
|
||||
Setup
|
||||
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
Check diagnosis, debugging information
|
||||
1) Setup configuration
|
||||
|
@ -1,7 +1,5 @@
|
||||
Setup
|
||||
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
Check diagnosis, debugging information
|
||||
1) Setup configuration
|
||||
|
@ -1,7 +1,5 @@
|
||||
Setup
|
||||
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
Check diagnosis, debugging information
|
||||
1) Setup configuration
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ cat >> $HGRCPATH << EOF
|
||||
> [extensions]
|
||||
|
@ -2,8 +2,6 @@
|
||||
|
||||
Setup
|
||||
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ mkcommit() {
|
||||
> echo "$1" > "$1"
|
||||
|
@ -1,7 +1,5 @@
|
||||
Setup
|
||||
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
Check diagnosis, debugging information
|
||||
1) Setup configuration
|
||||
|
@ -1,7 +1,5 @@
|
||||
Setup
|
||||
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
Check diagnosis, debugging information
|
||||
1) Setup configuration
|
||||
|
@ -2,8 +2,6 @@
|
||||
|
||||
Setup
|
||||
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ cat >> $HGRCPATH <<EOF
|
||||
> [extensions]
|
||||
|
@ -1,4 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ echo "[extensions]" >> $HGRCPATH
|
||||
$ echo "grepdiff=" >> $HGRCPATH
|
||||
|
||||
|
@ -1,7 +1,5 @@
|
||||
Setup
|
||||
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
$ cat >> $HGRCPATH << EOF
|
||||
> [extensions]
|
||||
> myparent=
|
||||
@ -53,22 +51,9 @@ If the authors do not match the keywords will be empty.
|
||||
|
||||
Make sure the template keywords are documented correctly
|
||||
|
||||
$ hg help templates | grep -A2 myparent
|
||||
$ hg help templates | grep myparent
|
||||
myparentdiff Show the differential revision of the commit's parent, if it
|
||||
has the same author as this commit.
|
||||
-- (?)
|
||||
myparentreviewers
|
||||
Show the reviewers of the commit's parent, if it has the
|
||||
same author as this commit.
|
||||
-- (?)
|
||||
myparentsubscribers
|
||||
Show the subscribers of the commit's parent, if it has the
|
||||
same author as this commit.
|
||||
-- (?)
|
||||
myparenttasks
|
||||
Show the tasks from the commit's parent, if it has the same
|
||||
author as this commit.
|
||||
-- (?)
|
||||
myparenttitleprefix
|
||||
Show the title prefix of the commit's parent, if it has the
|
||||
same author as this commit.
|
||||
|
@ -1,7 +1,5 @@
|
||||
$ . helpers-usechg.sh
|
||||
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ cat <<EOF >> $HGRCPATH
|
||||
> [extensions]
|
||||
|
@ -168,8 +168,6 @@ We need to disable the SCM_SAMPLING_FILEPATH env var because arcanist may set it
|
||||
> [extensions]
|
||||
> sampling=
|
||||
> EOF
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
$ unset SCM_SAMPLING_FILEPATH
|
||||
$ hg status
|
||||
>>> import json
|
||||
|
@ -1,4 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ echo "[extensions]" >> $HGRCPATH
|
||||
$ echo "phabdiff=" >> $HGRCPATH
|
||||
|
||||
|
@ -1,7 +1,5 @@
|
||||
Setup
|
||||
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
$ cat >> $HGRCPATH << EOF
|
||||
> [extensions]
|
||||
> arcconfig=$TESTDIR/../hgext/extlib/phabricator/arcconfig.py
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/../:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ cat > loop.py <<EOF
|
||||
> from mercurial import commands, registrar
|
||||
|
@ -2,8 +2,6 @@
|
||||
|
||||
Setup
|
||||
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
Test that hg pull creates obsolescence markers for landed diffs
|
||||
$ cat >> $HGRCPATH <<EOF
|
||||
|
@ -2,8 +2,6 @@
|
||||
|
||||
Setup
|
||||
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
Test that hg pull creates obsolescence markers for landed diffs
|
||||
$ cat >> $HGRCPATH <<EOF
|
||||
|
@ -1,7 +1,5 @@
|
||||
Setup
|
||||
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ cat >> $HGRCPATH <<EOF
|
||||
> [ui]
|
||||
|
@ -2,8 +2,6 @@
|
||||
|
||||
Setup
|
||||
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ cat >> $HGRCPATH << EOF
|
||||
> [ui]
|
||||
|
@ -2,8 +2,6 @@
|
||||
|
||||
Setup
|
||||
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ cat >> $HGRCPATH <<EOF
|
||||
> [ui]
|
||||
|
@ -2,8 +2,6 @@
|
||||
|
||||
Setup
|
||||
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ cat > $TESTTMP/pretxnchangegroup.sh << EOF
|
||||
> #!/bin/sh
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
no-check-code
|
||||
$ . "$TESTDIR/library.sh"
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ . "$TESTDIR/library.sh"
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ . "$TESTDIR/library.sh"
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ . "$TESTDIR/library.sh"
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ . "$TESTDIR/library.sh"
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ . "$TESTDIR/library.sh"
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ . "$TESTDIR/library.sh"
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ . "$TESTDIR/library.sh"
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ . "$TESTDIR/library.sh"
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ . "$TESTDIR/library.sh"
|
||||
|
||||
|
@ -7,18 +7,12 @@ import random
|
||||
import shutil
|
||||
import stat
|
||||
import struct
|
||||
import sys
|
||||
import tempfile
|
||||
import time
|
||||
import unittest
|
||||
|
||||
import silenttestrunner
|
||||
|
||||
# Load the local remotefilelog, not the system one
|
||||
sys.path[0:0] = [os.path.join(os.path.dirname(__file__), '..')]
|
||||
import pythonpath
|
||||
pythonpath.setcstorepath()
|
||||
|
||||
from hgext.remotefilelog.datapack import (
|
||||
datapack,
|
||||
datapackstore,
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ . "$TESTDIR/library.sh"
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ . "$TESTDIR/library.sh"
|
||||
|
||||
|
@ -7,17 +7,11 @@ import random
|
||||
import shutil
|
||||
import stat
|
||||
import struct
|
||||
import sys
|
||||
import tempfile
|
||||
import unittest
|
||||
|
||||
import silenttestrunner
|
||||
|
||||
# Load the local remotefilelog, not the system one
|
||||
sys.path[0:0] = [os.path.join(os.path.dirname(__file__), '..')]
|
||||
import pythonpath
|
||||
pythonpath.setcstorepath()
|
||||
|
||||
from hgext.remotefilelog.historypack import historypack, mutablehistorypack
|
||||
|
||||
from mercurial.node import nullid
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ . "$TESTDIR/library.sh"
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ . "$TESTDIR/library.sh"
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
$ LFSPATH=$TESTTMP/lfs
|
||||
$ export LFSPATH
|
||||
$ mkdir $LFSPATH
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ . "$TESTDIR/library.sh"
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
# Tests for the complicated linknode logic in remotefilelog.py::ancestormap()
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ . "$TESTDIR/library.sh"
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ . "$TESTDIR/library.sh"
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ . "$TESTDIR/library.sh"
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ . "$TESTDIR/library.sh"
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ . "$TESTDIR/library.sh"
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ . "$TESTDIR/library.sh"
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ . "$TESTDIR/library.sh"
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ . "$TESTDIR/library.sh"
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ . "$TESTDIR/library.sh"
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ . "$TESTDIR/library.sh"
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ . "$TESTDIR/library.sh"
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ . "$TESTDIR/library.sh"
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ . "$TESTDIR/library.sh"
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ . "$TESTDIR/library.sh"
|
||||
|
||||
|
@ -2,8 +2,6 @@ Setup. SCM_SAMPLING_FILEPATH needs to be cleared as some environments may
|
||||
have it set.
|
||||
|
||||
$ unset SCM_SAMPLING_FILEPATH
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ mkcommit() {
|
||||
> echo "$1" > "$1"
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/../:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ cat >> $TESTTMP/signal.py << EOF
|
||||
> from mercurial import registrar
|
||||
|
@ -1,7 +1,5 @@
|
||||
Setup
|
||||
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
$ cat >> $HGRCPATH << EOF
|
||||
> [extensions]
|
||||
> arcconfig=$TESTDIR/../hgext/extlib/phabricator/arcconfig.py
|
||||
|
@ -1,7 +1,5 @@
|
||||
$ . "$TESTDIR/library.sh"
|
||||
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ hginit master
|
||||
$ cd master
|
||||
|
@ -1,6 +1,4 @@
|
||||
$ CACHEDIR=`pwd`/hgcache
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ hg init master
|
||||
$ cd master
|
||||
|
@ -1,7 +1,5 @@
|
||||
$ . "$TESTDIR/library.sh"
|
||||
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
$ cat >> $HGRCPATH <<EOF
|
||||
> [treemanifest]
|
||||
> sendtrees=True
|
||||
|
@ -1,6 +1,4 @@
|
||||
$ CACHEDIR=`pwd`/hgcache
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ . "$TESTDIR/library.sh"
|
||||
|
||||
|
@ -2,8 +2,6 @@
|
||||
|
||||
$ . "$TESTDIR/library.sh"
|
||||
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ cat >> $TESTTMP/flatcheck.py <<EOF
|
||||
> import sys, traceback
|
||||
|
@ -1,8 +1,6 @@
|
||||
$ . "$TESTDIR/library.sh"
|
||||
$ . "$TESTDIR/infinitepush/library.sh"
|
||||
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
$ setupcommon
|
||||
|
||||
$ hginit master
|
||||
|
@ -2,8 +2,6 @@
|
||||
|
||||
This file tests that normal mercurial operations almost never read the flat manifests
|
||||
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ cat >> $TESTTMP/flatcheck.py <<EOF
|
||||
> import sys, traceback
|
||||
|
@ -1,6 +1,4 @@
|
||||
$ CACHEDIR=`pwd`/hgcache
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ cat >> $HGRCPATH <<EOF
|
||||
> [treemanifest]
|
||||
|
@ -16,8 +16,6 @@ There are three cases which are of interest in this test:
|
||||
#testcases remotefilelog.true.shallowrepo.true remotefilelog.true.shallowrepo.false remotefilelog.false
|
||||
|
||||
$ CACHEDIR=`pwd`/hgcache
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ . "$TESTDIR/library.sh"
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ . "$TESTDIR/library.sh"
|
||||
|
||||
|
@ -1,7 +1,5 @@
|
||||
$ . "$TESTDIR/library.sh"
|
||||
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ hg init master
|
||||
$ hg clone -q ssh://user@dummy/master client
|
||||
|
@ -1,7 +1,5 @@
|
||||
$ . "$TESTDIR/library.sh"
|
||||
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
- Disable simplecache since it can cause certain reads to not actually hit the
|
||||
- ondisk structures.
|
||||
|
@ -1,7 +1,5 @@
|
||||
$ . "$TESTDIR/library.sh"
|
||||
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
$ cat >> $HGRCPATH <<EOF
|
||||
> [treemanifest]
|
||||
> sendtrees=True
|
||||
|
@ -1,7 +1,5 @@
|
||||
$ . "$TESTDIR/library.sh"
|
||||
|
||||
$ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
|
||||
$ export PYTHONPATH
|
||||
|
||||
$ hginit master
|
||||
$ cd master
|
||||
|
Loading…
Reference in New Issue
Block a user