##// END OF EJS Templates
tests: add phase testing to test-push-http-bundle1.t...
Gregory Szorc -
r36317:e978e0c1 stable
parent child Browse files
Show More
@@ -66,11 +66,16 b' expect authorization error: must have au'
66
66
67 expect success
67 expect success
68
68
69 $ cat > $TESTTMP/hook.sh <<'EOF'
70 > echo "phase-move: $HG_NODE: $HG_OLDPHASE -> $HG_PHASE"
71 > EOF
72
69 $ cat >> .hg/hgrc <<EOF
73 $ cat >> .hg/hgrc <<EOF
70 > allow_push = *
74 > allow_push = *
71 > [hooks]
75 > [hooks]
72 > changegroup = sh -c "printenv.py changegroup 0"
76 > changegroup = sh -c "printenv.py changegroup 0"
73 > pushkey = sh -c "printenv.py pushkey 0"
77 > pushkey = sh -c "printenv.py pushkey 0"
78 > txnclose-phase.test = sh $TESTTMP/hook.sh
74 > EOF
79 > EOF
75 $ req
80 $ req
76 pushing to http://localhost:$HGPORT/
81 pushing to http://localhost:$HGPORT/
@@ -79,6 +84,8 b' expect success'
79 remote: adding manifests
84 remote: adding manifests
80 remote: adding file changes
85 remote: adding file changes
81 remote: added 1 changesets with 1 changes to 1 files
86 remote: added 1 changesets with 1 changes to 1 files
87 remote: phase-move: cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b: draft -> public
88 remote: phase-move: ba677d0156c1196c1a699fa53f390dcfc3ce3872: -> public
82 remote: changegroup hook: HG_HOOKNAME=changegroup HG_HOOKTYPE=changegroup HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_SOURCE=serve HG_TXNID=TXN:$ID$ HG_URL=remote:http:$LOCALIP: (glob)
89 remote: changegroup hook: HG_HOOKNAME=changegroup HG_HOOKTYPE=changegroup HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_SOURCE=serve HG_TXNID=TXN:$ID$ HG_URL=remote:http:$LOCALIP: (glob)
83 % serve errors
90 % serve errors
84 $ hg rollback
91 $ hg rollback
@@ -95,6 +102,8 b' expect success, server lacks the httphea'
95 remote: adding manifests
102 remote: adding manifests
96 remote: adding file changes
103 remote: adding file changes
97 remote: added 1 changesets with 1 changes to 1 files
104 remote: added 1 changesets with 1 changes to 1 files
105 remote: phase-move: cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b: draft -> public
106 remote: phase-move: ba677d0156c1196c1a699fa53f390dcfc3ce3872: -> public
98 remote: changegroup hook: HG_HOOKNAME=changegroup HG_HOOKTYPE=changegroup HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_SOURCE=serve HG_TXNID=TXN:$ID$ HG_URL=remote:http:$LOCALIP: (glob)
107 remote: changegroup hook: HG_HOOKNAME=changegroup HG_HOOKTYPE=changegroup HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_SOURCE=serve HG_TXNID=TXN:$ID$ HG_URL=remote:http:$LOCALIP: (glob)
99 % serve errors
108 % serve errors
100 $ hg rollback
109 $ hg rollback
@@ -111,6 +120,8 b' expect success, server lacks the unbundl'
111 remote: adding manifests
120 remote: adding manifests
112 remote: adding file changes
121 remote: adding file changes
113 remote: added 1 changesets with 1 changes to 1 files
122 remote: added 1 changesets with 1 changes to 1 files
123 remote: phase-move: cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b: draft -> public
124 remote: phase-move: ba677d0156c1196c1a699fa53f390dcfc3ce3872: -> public
114 remote: changegroup hook: HG_HOOKNAME=changegroup HG_HOOKTYPE=changegroup HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_SOURCE=serve HG_TXNID=TXN:$ID$ HG_URL=remote:http:$LOCALIP: (glob)
125 remote: changegroup hook: HG_HOOKNAME=changegroup HG_HOOKTYPE=changegroup HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_SOURCE=serve HG_TXNID=TXN:$ID$ HG_URL=remote:http:$LOCALIP: (glob)
115 % serve errors
126 % serve errors
116 $ hg rollback
127 $ hg rollback
@@ -140,6 +151,8 b' has no parameter'
140 remote: adding manifests
151 remote: adding manifests
141 remote: adding file changes
152 remote: adding file changes
142 remote: added 1 changesets with 1 changes to 1 files
153 remote: added 1 changesets with 1 changes to 1 files
154 remote: phase-move: cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b: draft -> public
155 remote: phase-move: ba677d0156c1196c1a699fa53f390dcfc3ce3872: -> public
143 remote: changegroup hook: * (glob)
156 remote: changegroup hook: * (glob)
144 % serve errors
157 % serve errors
145 $ hg rollback
158 $ hg rollback
General Comments 0
You need to be logged in to leave comments. Login now