##// END OF EJS Templates
tests: remove references to bundle2-exp config option...
Gregory Szorc -
r36175:2405ca78 default
parent child Browse files
Show More
@@ -1,9 +1,8 b''
1 cat >> $HGRCPATH <<EOF
1 cat >> $HGRCPATH <<EOF
2 [extensions]
2 [extensions]
3 narrow=
3 narrow=
4 [ui]
4 [ui]
5 ssh=python "$TESTDIR/dummyssh"
5 ssh=python "$TESTDIR/dummyssh"
6 [experimental]
6 [experimental]
7 bundle2-exp = True
8 changegroup3 = True
7 changegroup3 = True
9 EOF
8 EOF
@@ -1,71 +1,69 b''
1 Setup
1 Setup
2
2
3 $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
3 $ PYTHONPATH=$TESTDIR/..:$PYTHONPATH
4 $ export PYTHONPATH
4 $ export PYTHONPATH
5
5
6 $ cat > $TESTTMP/pretxnchangegroup.sh << EOF
6 $ cat > $TESTTMP/pretxnchangegroup.sh << EOF
7 > #!/bin/sh
7 > #!/bin/sh
8 > env | egrep "^HG_USERVAR_(DEBUG|BYPASS_REVIEW)" | sort
8 > env | egrep "^HG_USERVAR_(DEBUG|BYPASS_REVIEW)" | sort
9 > exit 0
9 > exit 0
10 > EOF
10 > EOF
11 $ cat >> $HGRCPATH << EOF
11 $ cat >> $HGRCPATH << EOF
12 > [hooks]
12 > [hooks]
13 > pretxnchangegroup = sh $TESTTMP/pretxnchangegroup.sh
13 > pretxnchangegroup = sh $TESTTMP/pretxnchangegroup.sh
14 > [experimental]
15 > bundle2-exp = true
16 > EOF
14 > EOF
17
15
18 $ hg init repo
16 $ hg init repo
19 $ hg clone -q repo child
17 $ hg clone -q repo child
20 $ cd child
18 $ cd child
21
19
22 Test pushing vars to repo with pushvars.server not set
20 Test pushing vars to repo with pushvars.server not set
23
21
24 $ echo b > a
22 $ echo b > a
25 $ hg commit -Aqm a
23 $ hg commit -Aqm a
26 $ hg push --pushvars "DEBUG=1" --pushvars "BYPASS_REVIEW=true"
24 $ hg push --pushvars "DEBUG=1" --pushvars "BYPASS_REVIEW=true"
27 pushing to $TESTTMP/repo
25 pushing to $TESTTMP/repo
28 searching for changes
26 searching for changes
29 adding changesets
27 adding changesets
30 adding manifests
28 adding manifests
31 adding file changes
29 adding file changes
32 added 1 changesets with 1 changes to 1 files
30 added 1 changesets with 1 changes to 1 files
33
31
34 Setting pushvars.sever = true and then pushing.
32 Setting pushvars.sever = true and then pushing.
35
33
36 $ echo [push] >> $HGRCPATH
34 $ echo [push] >> $HGRCPATH
37 $ echo "pushvars.server = true" >> $HGRCPATH
35 $ echo "pushvars.server = true" >> $HGRCPATH
38 $ echo b >> a
36 $ echo b >> a
39 $ hg commit -Aqm a
37 $ hg commit -Aqm a
40 $ hg push --pushvars "DEBUG=1" --pushvars "BYPASS_REVIEW=true"
38 $ hg push --pushvars "DEBUG=1" --pushvars "BYPASS_REVIEW=true"
41 pushing to $TESTTMP/repo
39 pushing to $TESTTMP/repo
42 searching for changes
40 searching for changes
43 adding changesets
41 adding changesets
44 adding manifests
42 adding manifests
45 adding file changes
43 adding file changes
46 added 1 changesets with 1 changes to 1 files
44 added 1 changesets with 1 changes to 1 files
47 HG_USERVAR_BYPASS_REVIEW=true
45 HG_USERVAR_BYPASS_REVIEW=true
48 HG_USERVAR_DEBUG=1
46 HG_USERVAR_DEBUG=1
49
47
50 Test pushing var with empty right-hand side
48 Test pushing var with empty right-hand side
51
49
52 $ echo b >> a
50 $ echo b >> a
53 $ hg commit -Aqm a
51 $ hg commit -Aqm a
54 $ hg push --pushvars "DEBUG="
52 $ hg push --pushvars "DEBUG="
55 pushing to $TESTTMP/repo
53 pushing to $TESTTMP/repo
56 searching for changes
54 searching for changes
57 adding changesets
55 adding changesets
58 adding manifests
56 adding manifests
59 adding file changes
57 adding file changes
60 added 1 changesets with 1 changes to 1 files
58 added 1 changesets with 1 changes to 1 files
61 HG_USERVAR_DEBUG=
59 HG_USERVAR_DEBUG=
62
60
63 Test pushing bad vars
61 Test pushing bad vars
64
62
65 $ echo b >> a
63 $ echo b >> a
66 $ hg commit -Aqm b
64 $ hg commit -Aqm b
67 $ hg push --pushvars "DEBUG"
65 $ hg push --pushvars "DEBUG"
68 pushing to $TESTTMP/repo
66 pushing to $TESTTMP/repo
69 searching for changes
67 searching for changes
70 abort: unable to parse variable 'DEBUG', should follow 'KEY=VALUE' or 'KEY=' format
68 abort: unable to parse variable 'DEBUG', should follow 'KEY=VALUE' or 'KEY=' format
71 [255]
69 [255]
General Comments 0
You need to be logged in to leave comments. Login now