comparison tests/test-push-http.t @ 31741:728d37353e1e

run-tests: auto-replace 'TXNID' output Hooks related to the transaction are aware of the transaction id. By definition this txn-id is unique and different for each transaction. As a result it can never be predicted in test and always needs matching. As a result, touching any like with this data is annoying. We solve the problem once and for all by installing an automatic replacement. In test, this will now show as: TXNID=TXN:$ID$
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Thu, 30 Mar 2017 17:29:03 +0200
parents 636cf3f7620d
children 0fa30fbccc34
comparison
equal deleted inserted replaced
31740:a40e979b9d97 31741:728d37353e1e
68 remote: adding changesets 68 remote: adding changesets
69 remote: adding manifests 69 remote: adding manifests
70 remote: adding file changes 70 remote: adding file changes
71 remote: added 1 changesets with 1 changes to 1 files 71 remote: added 1 changesets with 1 changes to 1 files
72 remote: pushkey hook: HG_KEY=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_NAMESPACE=phases HG_NEW=0 HG_OLD=1 HG_RET=1 72 remote: pushkey hook: HG_KEY=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_NAMESPACE=phases HG_NEW=0 HG_OLD=1 HG_RET=1
73 remote: changegroup hook: HG_BUNDLE2=1 HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_SOURCE=serve HG_TXNID=TXN:* HG_URL=remote:http:*: (glob) 73 remote: changegroup hook: HG_BUNDLE2=1 HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_SOURCE=serve HG_TXNID=TXN:$ID$ HG_URL=remote:http:$LOCALIP:
74 % serve errors 74 % serve errors
75 $ hg rollback 75 $ hg rollback
76 repository tip rolled back to revision 0 (undo serve) 76 repository tip rolled back to revision 0 (undo serve)
77 77
78 expect success, server lacks the httpheader capability 78 expect success, server lacks the httpheader capability
85 remote: adding changesets 85 remote: adding changesets
86 remote: adding manifests 86 remote: adding manifests
87 remote: adding file changes 87 remote: adding file changes
88 remote: added 1 changesets with 1 changes to 1 files 88 remote: added 1 changesets with 1 changes to 1 files
89 remote: pushkey hook: HG_KEY=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_NAMESPACE=phases HG_NEW=0 HG_OLD=1 HG_RET=1 89 remote: pushkey hook: HG_KEY=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_NAMESPACE=phases HG_NEW=0 HG_OLD=1 HG_RET=1
90 remote: changegroup hook: HG_BUNDLE2=1 HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_SOURCE=serve HG_TXNID=TXN:* HG_URL=remote:http:*: (glob) 90 remote: changegroup hook: HG_BUNDLE2=1 HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_SOURCE=serve HG_TXNID=TXN:$ID$ HG_URL=remote:http:$LOCALIP:
91 % serve errors 91 % serve errors
92 $ hg rollback 92 $ hg rollback
93 repository tip rolled back to revision 0 (undo serve) 93 repository tip rolled back to revision 0 (undo serve)
94 94
95 expect success, server lacks the unbundlehash capability 95 expect success, server lacks the unbundlehash capability
102 remote: adding changesets 102 remote: adding changesets
103 remote: adding manifests 103 remote: adding manifests
104 remote: adding file changes 104 remote: adding file changes
105 remote: added 1 changesets with 1 changes to 1 files 105 remote: added 1 changesets with 1 changes to 1 files
106 remote: pushkey hook: HG_KEY=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_NAMESPACE=phases HG_NEW=0 HG_OLD=1 HG_RET=1 106 remote: pushkey hook: HG_KEY=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_NAMESPACE=phases HG_NEW=0 HG_OLD=1 HG_RET=1
107 remote: changegroup hook: HG_BUNDLE2=1 HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_SOURCE=serve HG_TXNID=TXN:* HG_URL=remote:http:*: (glob) 107 remote: changegroup hook: HG_BUNDLE2=1 HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_SOURCE=serve HG_TXNID=TXN:$ID$ HG_URL=remote:http:$LOCALIP:
108 % serve errors 108 % serve errors
109 $ hg rollback 109 $ hg rollback
110 repository tip rolled back to revision 0 (undo serve) 110 repository tip rolled back to revision 0 (undo serve)
111 111
112 expect push success, phase change failure 112 expect push success, phase change failure
123 searching for changes 123 searching for changes
124 remote: adding changesets 124 remote: adding changesets
125 remote: adding manifests 125 remote: adding manifests
126 remote: adding file changes 126 remote: adding file changes
127 remote: added 1 changesets with 1 changes to 1 files 127 remote: added 1 changesets with 1 changes to 1 files
128 remote: prepushkey hook: HG_BUNDLE2=1 HG_KEY=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_NAMESPACE=phases HG_NEW=0 HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_OLD=1 HG_PENDING=$TESTTMP/test HG_PHASES_MOVED=1 HG_SOURCE=serve HG_TXNID=TXN:* HG_URL=remote:http:*: (glob) 128 remote: prepushkey hook: HG_BUNDLE2=1 HG_KEY=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_NAMESPACE=phases HG_NEW=0 HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_OLD=1 HG_PENDING=$TESTTMP/test HG_PHASES_MOVED=1 HG_SOURCE=serve HG_TXNID=TXN:$ID$ HG_URL=remote:http:$LOCALIP:
129 remote: pushkey-abort: prepushkey hook exited with status 1 129 remote: pushkey-abort: prepushkey hook exited with status 1
130 remote: transaction abort! 130 remote: transaction abort!
131 remote: rollback completed 131 remote: rollback completed
132 abort: updating ba677d0156c1 to public failed 132 abort: updating ba677d0156c1 to public failed
133 % serve errors 133 % serve errors
143 searching for changes 143 searching for changes
144 remote: adding changesets 144 remote: adding changesets
145 remote: adding manifests 145 remote: adding manifests
146 remote: adding file changes 146 remote: adding file changes
147 remote: added 1 changesets with 1 changes to 1 files 147 remote: added 1 changesets with 1 changes to 1 files
148 remote: prepushkey hook: HG_BUNDLE2=1 HG_KEY=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_NAMESPACE=phases HG_NEW=0 HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_OLD=1 HG_PENDING=$TESTTMP/test HG_PHASES_MOVED=1 HG_SOURCE=serve HG_TXNID=TXN:* HG_URL=remote:http:*: (glob) 148 remote: prepushkey hook: HG_BUNDLE2=1 HG_KEY=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_NAMESPACE=phases HG_NEW=0 HG_NODE=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872 HG_OLD=1 HG_PENDING=$TESTTMP/test HG_PHASES_MOVED=1 HG_SOURCE=serve HG_TXNID=TXN:$ID$ HG_URL=remote:http:$LOCALIP:
149 % serve errors 149 % serve errors
150 $ hg rollback 150 $ hg rollback
151 repository tip rolled back to revision 0 (undo serve) 151 repository tip rolled back to revision 0 (undo serve)
152 152
153 expect authorization error: all users denied 153 expect authorization error: all users denied