##// END OF EJS Templates
transaction: include txnname in the hookargs dictionary...
marmoute -
r42062:94faa2e8 default
parent child Browse files
Show More
@@ -1818,7 +1818,6 b' class localrepository(object):'
1818 args = tr.hookargs.copy()
1818 args = tr.hookargs.copy()
1819 args.update(bookmarks.preparehookargs(name, old, new))
1819 args.update(bookmarks.preparehookargs(name, old, new))
1820 repo.hook('pretxnclose-bookmark', throw=True,
1820 repo.hook('pretxnclose-bookmark', throw=True,
1821 txnname=desc,
1822 **pycompat.strkwargs(args))
1821 **pycompat.strkwargs(args))
1823 if hook.hashook(repo.ui, 'pretxnclose-phase'):
1822 if hook.hashook(repo.ui, 'pretxnclose-phase'):
1824 cl = repo.unfiltered().changelog
1823 cl = repo.unfiltered().changelog
@@ -1826,11 +1825,11 b' class localrepository(object):'
1826 args = tr.hookargs.copy()
1825 args = tr.hookargs.copy()
1827 node = hex(cl.node(rev))
1826 node = hex(cl.node(rev))
1828 args.update(phases.preparehookargs(node, old, new))
1827 args.update(phases.preparehookargs(node, old, new))
1829 repo.hook('pretxnclose-phase', throw=True, txnname=desc,
1828 repo.hook('pretxnclose-phase', throw=True,
1830 **pycompat.strkwargs(args))
1829 **pycompat.strkwargs(args))
1831
1830
1832 repo.hook('pretxnclose', throw=True,
1831 repo.hook('pretxnclose', throw=True,
1833 txnname=desc, **pycompat.strkwargs(tr.hookargs))
1832 **pycompat.strkwargs(tr.hookargs))
1834 def releasefn(tr, success):
1833 def releasefn(tr, success):
1835 repo = reporef()
1834 repo = reporef()
1836 if success:
1835 if success:
@@ -1864,6 +1863,7 b' class localrepository(object):'
1864 tr.changes['bookmarks'] = {}
1863 tr.changes['bookmarks'] = {}
1865
1864
1866 tr.hookargs['txnid'] = txnid
1865 tr.hookargs['txnid'] = txnid
1866 tr.hookargs['txnname'] = desc
1867 # note: writing the fncache only during finalize mean that the file is
1867 # note: writing the fncache only during finalize mean that the file is
1868 # outdated when running hooks. As fncache is used for streaming clone,
1868 # outdated when running hooks. As fncache is used for streaming clone,
1869 # this is not expected to break anything that happen during the hooks.
1869 # this is not expected to break anything that happen during the hooks.
@@ -1885,7 +1885,7 b' class localrepository(object):'
1885 args = tr.hookargs.copy()
1885 args = tr.hookargs.copy()
1886 args.update(bookmarks.preparehookargs(name, old, new))
1886 args.update(bookmarks.preparehookargs(name, old, new))
1887 repo.hook('txnclose-bookmark', throw=False,
1887 repo.hook('txnclose-bookmark', throw=False,
1888 txnname=desc, **pycompat.strkwargs(args))
1888 **pycompat.strkwargs(args))
1889
1889
1890 if hook.hashook(repo.ui, 'txnclose-phase'):
1890 if hook.hashook(repo.ui, 'txnclose-phase'):
1891 cl = repo.unfiltered().changelog
1891 cl = repo.unfiltered().changelog
@@ -1894,10 +1894,10 b' class localrepository(object):'
1894 args = tr.hookargs.copy()
1894 args = tr.hookargs.copy()
1895 node = hex(cl.node(rev))
1895 node = hex(cl.node(rev))
1896 args.update(phases.preparehookargs(node, old, new))
1896 args.update(phases.preparehookargs(node, old, new))
1897 repo.hook('txnclose-phase', throw=False, txnname=desc,
1897 repo.hook('txnclose-phase', throw=False,
1898 **pycompat.strkwargs(args))
1898 **pycompat.strkwargs(args))
1899
1899
1900 repo.hook('txnclose', throw=False, txnname=desc,
1900 repo.hook('txnclose', throw=False,
1901 **pycompat.strkwargs(hookargs))
1901 **pycompat.strkwargs(hookargs))
1902 reporef()._afterlock(hookfunc)
1902 reporef()._afterlock(hookfunc)
1903 tr.addfinalize('txnclose-hook', txnclosehook)
1903 tr.addfinalize('txnclose-hook', txnclosehook)
@@ -1909,7 +1909,7 b' class localrepository(object):'
1909 def txnaborthook(tr2):
1909 def txnaborthook(tr2):
1910 """To be run if transaction is aborted
1910 """To be run if transaction is aborted
1911 """
1911 """
1912 reporef().hook('txnabort', throw=False, txnname=desc,
1912 reporef().hook('txnabort', throw=False,
1913 **pycompat.strkwargs(tr2.hookargs))
1913 **pycompat.strkwargs(tr2.hookargs))
1914 tr.addabort('txnabort-hook', txnaborthook)
1914 tr.addabort('txnabort-hook', txnaborthook)
1915 # avoid eager cache invalidation. in-memory data should be identical
1915 # avoid eager cache invalidation. in-memory data should be identical
@@ -240,6 +240,8 b' hg -R bundle://../full.hg verify'
240 HG_NODE_LAST=aa35859c02ea8bd48da5da68cd2740ac71afcbaf
240 HG_NODE_LAST=aa35859c02ea8bd48da5da68cd2740ac71afcbaf
241 HG_SOURCE=pull
241 HG_SOURCE=pull
242 HG_TXNID=TXN:$ID$
242 HG_TXNID=TXN:$ID$
243 HG_TXNNAME=pull
244 bundle:../full.hg
243 HG_URL=bundle:../full.hg (no-msys !)
245 HG_URL=bundle:../full.hg (no-msys !)
244 HG_URL=bundle;../full.hg (msys !)
246 HG_URL=bundle;../full.hg (msys !)
245
247
@@ -272,6 +274,8 b' Pull full.hg into empty again (using -R;'
272 HG_NODE_LAST=aa35859c02ea8bd48da5da68cd2740ac71afcbaf
274 HG_NODE_LAST=aa35859c02ea8bd48da5da68cd2740ac71afcbaf
273 HG_SOURCE=pull
275 HG_SOURCE=pull
274 HG_TXNID=TXN:$ID$
276 HG_TXNID=TXN:$ID$
277 HG_TXNNAME=pull
278 bundle:empty+full.hg
275 HG_URL=bundle:empty+full.hg
279 HG_URL=bundle:empty+full.hg
276
280
277 (run 'hg heads' to see heads, 'hg merge' to merge)
281 (run 'hg heads' to see heads, 'hg merge' to merge)
@@ -88,6 +88,8 b' Pull the new commits in the clone'
88 HG_PENDING=$TESTTMP/clone
88 HG_PENDING=$TESTTMP/clone
89 HG_SOURCE=pull
89 HG_SOURCE=pull
90 HG_TXNID=TXN:$ID$
90 HG_TXNID=TXN:$ID$
91 HG_TXNNAME=pull
92 file:/*/$TESTTMP/repo (glob)
91 HG_URL=file:$TESTTMP/repo
93 HG_URL=file:$TESTTMP/repo
92
94
93 remote: changegroup2
95 remote: changegroup2
@@ -103,6 +105,8 b' Pull the new commits in the clone'
103 HG_PHASES_MOVED=1
105 HG_PHASES_MOVED=1
104 HG_SOURCE=pull
106 HG_SOURCE=pull
105 HG_TXNID=TXN:$ID$
107 HG_TXNID=TXN:$ID$
108 HG_TXNNAME=pull
109 file:/*/$TESTTMP/repo (glob)
106 HG_URL=file:$TESTTMP/repo
110 HG_URL=file:$TESTTMP/repo
107
111
108 new changesets 27547f69f254:f838bfaca5c7
112 new changesets 27547f69f254:f838bfaca5c7
@@ -112,6 +116,8 b' Pull the new commits in the clone'
112 HG_NODE_LAST=27547f69f25460a52fff66ad004e58da7ad3fb56
116 HG_NODE_LAST=27547f69f25460a52fff66ad004e58da7ad3fb56
113 HG_SOURCE=pull
117 HG_SOURCE=pull
114 HG_TXNID=TXN:$ID$
118 HG_TXNID=TXN:$ID$
119 HG_TXNNAME=pull
120 file:/*/$TESTTMP/repo (glob)
115 HG_URL=file:$TESTTMP/repo
121 HG_URL=file:$TESTTMP/repo
116
122
117 incoming hook: HG_HOOKNAME=incoming
123 incoming hook: HG_HOOKNAME=incoming
@@ -119,6 +125,8 b' Pull the new commits in the clone'
119 HG_NODE=27547f69f25460a52fff66ad004e58da7ad3fb56
125 HG_NODE=27547f69f25460a52fff66ad004e58da7ad3fb56
120 HG_SOURCE=pull
126 HG_SOURCE=pull
121 HG_TXNID=TXN:$ID$
127 HG_TXNID=TXN:$ID$
128 HG_TXNNAME=pull
129 file:/*/$TESTTMP/repo (glob)
122 HG_URL=file:$TESTTMP/repo
130 HG_URL=file:$TESTTMP/repo
123
131
124 changegroup hook: HG_HOOKNAME=changegroup
132 changegroup hook: HG_HOOKNAME=changegroup
@@ -128,6 +136,8 b' Pull the new commits in the clone'
128 HG_PHASES_MOVED=1
136 HG_PHASES_MOVED=1
129 HG_SOURCE=pull
137 HG_SOURCE=pull
130 HG_TXNID=TXN:$ID$
138 HG_TXNID=TXN:$ID$
139 HG_TXNNAME=pull
140 file:/*/$TESTTMP/repo (glob)
131 HG_URL=file:$TESTTMP/repo
141 HG_URL=file:$TESTTMP/repo
132
142
133 incoming hook: HG_HOOKNAME=incoming
143 incoming hook: HG_HOOKNAME=incoming
@@ -136,6 +146,8 b' Pull the new commits in the clone'
136 HG_PHASES_MOVED=1
146 HG_PHASES_MOVED=1
137 HG_SOURCE=pull
147 HG_SOURCE=pull
138 HG_TXNID=TXN:$ID$
148 HG_TXNID=TXN:$ID$
149 HG_TXNNAME=pull
150 file:/*/$TESTTMP/repo (glob)
139 HG_URL=file:$TESTTMP/repo
151 HG_URL=file:$TESTTMP/repo
140
152
141 pullop.cgresult is 1
153 pullop.cgresult is 1
@@ -204,6 +216,8 b' pullop.cgresult'
204 HG_PENDING=$TESTTMP/clone
216 HG_PENDING=$TESTTMP/clone
205 HG_SOURCE=pull
217 HG_SOURCE=pull
206 HG_TXNID=TXN:$ID$
218 HG_TXNID=TXN:$ID$
219 HG_TXNNAME=pull
220 file:/*/$TESTTMP/repo (glob)
207 HG_URL=file:$TESTTMP/repo
221 HG_URL=file:$TESTTMP/repo
208
222
209 remote: changegroup2
223 remote: changegroup2
@@ -219,6 +233,8 b' pullop.cgresult'
219 HG_PHASES_MOVED=1
233 HG_PHASES_MOVED=1
220 HG_SOURCE=pull
234 HG_SOURCE=pull
221 HG_TXNID=TXN:$ID$
235 HG_TXNID=TXN:$ID$
236 HG_TXNNAME=pull
237 file:/*/$TESTTMP/repo (glob)
222 HG_URL=file:$TESTTMP/repo
238 HG_URL=file:$TESTTMP/repo
223
239
224 new changesets b3325c91a4d9:5cd59d311f65
240 new changesets b3325c91a4d9:5cd59d311f65
@@ -228,6 +244,8 b' pullop.cgresult'
228 HG_NODE_LAST=8a5212ebc8527f9fb821601504794e3eb11a1ed3
244 HG_NODE_LAST=8a5212ebc8527f9fb821601504794e3eb11a1ed3
229 HG_SOURCE=pull
245 HG_SOURCE=pull
230 HG_TXNID=TXN:$ID$
246 HG_TXNID=TXN:$ID$
247 HG_TXNNAME=pull
248 file:/*/$TESTTMP/repo (glob)
231 HG_URL=file:$TESTTMP/repo
249 HG_URL=file:$TESTTMP/repo
232
250
233 incoming hook: HG_HOOKNAME=incoming
251 incoming hook: HG_HOOKNAME=incoming
@@ -235,6 +253,8 b' pullop.cgresult'
235 HG_NODE=b3325c91a4d916bcc4cdc83ea3fe4ece46a42f6e
253 HG_NODE=b3325c91a4d916bcc4cdc83ea3fe4ece46a42f6e
236 HG_SOURCE=pull
254 HG_SOURCE=pull
237 HG_TXNID=TXN:$ID$
255 HG_TXNID=TXN:$ID$
256 HG_TXNNAME=pull
257 file:/*/$TESTTMP/repo (glob)
238 HG_URL=file:$TESTTMP/repo
258 HG_URL=file:$TESTTMP/repo
239
259
240 incoming hook: HG_HOOKNAME=incoming
260 incoming hook: HG_HOOKNAME=incoming
@@ -242,6 +262,8 b' pullop.cgresult'
242 HG_NODE=8a5212ebc8527f9fb821601504794e3eb11a1ed3
262 HG_NODE=8a5212ebc8527f9fb821601504794e3eb11a1ed3
243 HG_SOURCE=pull
263 HG_SOURCE=pull
244 HG_TXNID=TXN:$ID$
264 HG_TXNID=TXN:$ID$
265 HG_TXNNAME=pull
266 file:/*/$TESTTMP/repo (glob)
245 HG_URL=file:$TESTTMP/repo
267 HG_URL=file:$TESTTMP/repo
246
268
247 changegroup hook: HG_HOOKNAME=changegroup
269 changegroup hook: HG_HOOKNAME=changegroup
@@ -251,6 +273,8 b' pullop.cgresult'
251 HG_PHASES_MOVED=1
273 HG_PHASES_MOVED=1
252 HG_SOURCE=pull
274 HG_SOURCE=pull
253 HG_TXNID=TXN:$ID$
275 HG_TXNID=TXN:$ID$
276 HG_TXNNAME=pull
277 file:/*/$TESTTMP/repo (glob)
254 HG_URL=file:$TESTTMP/repo
278 HG_URL=file:$TESTTMP/repo
255
279
256 incoming hook: HG_HOOKNAME=incoming
280 incoming hook: HG_HOOKNAME=incoming
@@ -259,6 +283,8 b' pullop.cgresult'
259 HG_PHASES_MOVED=1
283 HG_PHASES_MOVED=1
260 HG_SOURCE=pull
284 HG_SOURCE=pull
261 HG_TXNID=TXN:$ID$
285 HG_TXNID=TXN:$ID$
286 HG_TXNNAME=pull
287 file:/*/$TESTTMP/repo (glob)
262 HG_URL=file:$TESTTMP/repo
288 HG_URL=file:$TESTTMP/repo
263
289
264 incoming hook: HG_HOOKNAME=incoming
290 incoming hook: HG_HOOKNAME=incoming
@@ -267,6 +293,8 b' pullop.cgresult'
267 HG_PHASES_MOVED=1
293 HG_PHASES_MOVED=1
268 HG_SOURCE=pull
294 HG_SOURCE=pull
269 HG_TXNID=TXN:$ID$
295 HG_TXNID=TXN:$ID$
296 HG_TXNNAME=pull
297 file:/*/$TESTTMP/repo (glob)
270 HG_URL=file:$TESTTMP/repo
298 HG_URL=file:$TESTTMP/repo
271
299
272 incoming hook: HG_HOOKNAME=incoming
300 incoming hook: HG_HOOKNAME=incoming
@@ -275,6 +303,8 b' pullop.cgresult'
275 HG_PHASES_MOVED=1
303 HG_PHASES_MOVED=1
276 HG_SOURCE=pull
304 HG_SOURCE=pull
277 HG_TXNID=TXN:$ID$
305 HG_TXNID=TXN:$ID$
306 HG_TXNNAME=pull
307 file:/*/$TESTTMP/repo (glob)
278 HG_URL=file:$TESTTMP/repo
308 HG_URL=file:$TESTTMP/repo
279
309
280 pullop.cgresult is 3
310 pullop.cgresult is 3
@@ -343,6 +373,8 b' pullop.cgresult'
343 HG_PENDING=$TESTTMP/clone
373 HG_PENDING=$TESTTMP/clone
344 HG_SOURCE=pull
374 HG_SOURCE=pull
345 HG_TXNID=TXN:$ID$
375 HG_TXNID=TXN:$ID$
376 HG_TXNNAME=pull
377 file:/*/$TESTTMP/repo (glob)
346 HG_URL=file:$TESTTMP/repo
378 HG_URL=file:$TESTTMP/repo
347
379
348 remote: changegroup2
380 remote: changegroup2
@@ -358,6 +390,8 b' pullop.cgresult'
358 HG_PHASES_MOVED=1
390 HG_PHASES_MOVED=1
359 HG_SOURCE=pull
391 HG_SOURCE=pull
360 HG_TXNID=TXN:$ID$
392 HG_TXNID=TXN:$ID$
393 HG_TXNNAME=pull
394 file:/*/$TESTTMP/repo (glob)
361 HG_URL=file:$TESTTMP/repo
395 HG_URL=file:$TESTTMP/repo
362
396
363 new changesets 71bd7b46de72:9d18e5bd9ab0
397 new changesets 71bd7b46de72:9d18e5bd9ab0
@@ -367,6 +401,8 b' pullop.cgresult'
367 HG_NODE_LAST=71bd7b46de72e69a32455bf88d04757d542e6cf4
401 HG_NODE_LAST=71bd7b46de72e69a32455bf88d04757d542e6cf4
368 HG_SOURCE=pull
402 HG_SOURCE=pull
369 HG_TXNID=TXN:$ID$
403 HG_TXNID=TXN:$ID$
404 HG_TXNNAME=pull
405 file:/*/$TESTTMP/repo (glob)
370 HG_URL=file:$TESTTMP/repo
406 HG_URL=file:$TESTTMP/repo
371
407
372 incoming hook: HG_HOOKNAME=incoming
408 incoming hook: HG_HOOKNAME=incoming
@@ -374,6 +410,8 b' pullop.cgresult'
374 HG_NODE=71bd7b46de72e69a32455bf88d04757d542e6cf4
410 HG_NODE=71bd7b46de72e69a32455bf88d04757d542e6cf4
375 HG_SOURCE=pull
411 HG_SOURCE=pull
376 HG_TXNID=TXN:$ID$
412 HG_TXNID=TXN:$ID$
413 HG_TXNNAME=pull
414 file:/*/$TESTTMP/repo (glob)
377 HG_URL=file:$TESTTMP/repo
415 HG_URL=file:$TESTTMP/repo
378
416
379 changegroup hook: HG_HOOKNAME=changegroup
417 changegroup hook: HG_HOOKNAME=changegroup
@@ -383,6 +421,8 b' pullop.cgresult'
383 HG_PHASES_MOVED=1
421 HG_PHASES_MOVED=1
384 HG_SOURCE=pull
422 HG_SOURCE=pull
385 HG_TXNID=TXN:$ID$
423 HG_TXNID=TXN:$ID$
424 HG_TXNNAME=pull
425 file:/*/$TESTTMP/repo (glob)
386 HG_URL=file:$TESTTMP/repo
426 HG_URL=file:$TESTTMP/repo
387
427
388 incoming hook: HG_HOOKNAME=incoming
428 incoming hook: HG_HOOKNAME=incoming
@@ -391,6 +431,8 b' pullop.cgresult'
391 HG_PHASES_MOVED=1
431 HG_PHASES_MOVED=1
392 HG_SOURCE=pull
432 HG_SOURCE=pull
393 HG_TXNID=TXN:$ID$
433 HG_TXNID=TXN:$ID$
434 HG_TXNNAME=pull
435 file:/*/$TESTTMP/repo (glob)
394 HG_URL=file:$TESTTMP/repo
436 HG_URL=file:$TESTTMP/repo
395
437
396 pullop.cgresult is -2
438 pullop.cgresult is -2
@@ -252,6 +252,8 b' test generic hooks'
252 HG_HOOKTYPE=prechangegroup
252 HG_HOOKTYPE=prechangegroup
253 HG_SOURCE=pull
253 HG_SOURCE=pull
254 HG_TXNID=TXN:$ID$
254 HG_TXNID=TXN:$ID$
255 HG_TXNNAME=pull
256 file:/*/$TESTTMP/a (glob)
255 HG_URL=file:$TESTTMP/a
257 HG_URL=file:$TESTTMP/a
256
258
257 adding changesets
259 adding changesets
@@ -265,6 +267,8 b' test generic hooks'
265 HG_NODE_LAST=07f3376c1e655977439df2a814e3cc14b27abac2
267 HG_NODE_LAST=07f3376c1e655977439df2a814e3cc14b27abac2
266 HG_SOURCE=pull
268 HG_SOURCE=pull
267 HG_TXNID=TXN:$ID$
269 HG_TXNID=TXN:$ID$
270 HG_TXNNAME=pull
271 file:/*/$TESTTMP/a (glob)
268 HG_URL=file:$TESTTMP/a
272 HG_URL=file:$TESTTMP/a
269
273
270 incoming hook: HG_HOOKNAME=incoming
274 incoming hook: HG_HOOKNAME=incoming
@@ -272,6 +276,8 b' test generic hooks'
272 HG_NODE=ab228980c14deea8b9555d91c9581127383e40fd
276 HG_NODE=ab228980c14deea8b9555d91c9581127383e40fd
273 HG_SOURCE=pull
277 HG_SOURCE=pull
274 HG_TXNID=TXN:$ID$
278 HG_TXNID=TXN:$ID$
279 HG_TXNNAME=pull
280 file:/*/$TESTTMP/a (glob)
275 HG_URL=file:$TESTTMP/a
281 HG_URL=file:$TESTTMP/a
276
282
277 incoming hook: HG_HOOKNAME=incoming
283 incoming hook: HG_HOOKNAME=incoming
@@ -279,6 +285,8 b' test generic hooks'
279 HG_NODE=ee9deb46ab31e4cc3310f3cf0c3d668e4d8fffc2
285 HG_NODE=ee9deb46ab31e4cc3310f3cf0c3d668e4d8fffc2
280 HG_SOURCE=pull
286 HG_SOURCE=pull
281 HG_TXNID=TXN:$ID$
287 HG_TXNID=TXN:$ID$
288 HG_TXNNAME=pull
289 file:/*/$TESTTMP/a (glob)
282 HG_URL=file:$TESTTMP/a
290 HG_URL=file:$TESTTMP/a
283
291
284 incoming hook: HG_HOOKNAME=incoming
292 incoming hook: HG_HOOKNAME=incoming
@@ -286,6 +294,8 b' test generic hooks'
286 HG_NODE=07f3376c1e655977439df2a814e3cc14b27abac2
294 HG_NODE=07f3376c1e655977439df2a814e3cc14b27abac2
287 HG_SOURCE=pull
295 HG_SOURCE=pull
288 HG_TXNID=TXN:$ID$
296 HG_TXNID=TXN:$ID$
297 HG_TXNNAME=pull
298 file:/*/$TESTTMP/a (glob)
289 HG_URL=file:$TESTTMP/a
299 HG_URL=file:$TESTTMP/a
290
300
291 (run 'hg update' to get a working copy)
301 (run 'hg update' to get a working copy)
@@ -543,6 +553,7 b' pushkey hook'
543 HG_PUSHKEYCOMPAT=1
553 HG_PUSHKEYCOMPAT=1
544 HG_SOURCE=push
554 HG_SOURCE=push
545 HG_TXNID=TXN:$ID$
555 HG_TXNID=TXN:$ID$
556 HG_TXNNAME=push
546 HG_URL=file:$TESTTMP/a
557 HG_URL=file:$TESTTMP/a
547
558
548 txnclose hook: HG_BOOKMARK_MOVED=1
559 txnclose hook: HG_BOOKMARK_MOVED=1
@@ -629,6 +640,7 b' test that prepushkey can prevent incomin'
629 HG_PUSHKEYCOMPAT=1
640 HG_PUSHKEYCOMPAT=1
630 HG_SOURCE=push
641 HG_SOURCE=push
631 HG_TXNID=TXN:$ID$
642 HG_TXNID=TXN:$ID$
643 HG_TXNNAME=push
632 HG_URL=file:$TESTTMP/a
644 HG_URL=file:$TESTTMP/a
633
645
634 abort: prepushkey hook exited with status 1
646 abort: prepushkey hook exited with status 1
@@ -687,6 +699,8 b' prechangegroup hook can prevent incoming'
687 HG_HOOKTYPE=prechangegroup
699 HG_HOOKTYPE=prechangegroup
688 HG_SOURCE=pull
700 HG_SOURCE=pull
689 HG_TXNID=TXN:$ID$
701 HG_TXNID=TXN:$ID$
702 HG_TXNNAME=pull
703 file:/*/$TESTTMP/a (glob)
690 HG_URL=file:$TESTTMP/a
704 HG_URL=file:$TESTTMP/a
691
705
692 abort: prechangegroup.forbid hook exited with status 1
706 abort: prechangegroup.forbid hook exited with status 1
@@ -715,6 +729,8 b' incoming changes no longer there after'
715 HG_PENDING=$TESTTMP/b
729 HG_PENDING=$TESTTMP/b
716 HG_SOURCE=pull
730 HG_SOURCE=pull
717 HG_TXNID=TXN:$ID$
731 HG_TXNID=TXN:$ID$
732 HG_TXNNAME=pull
733 file:/*/$TESTTMP/a (glob)
718 HG_URL=file:$TESTTMP/a
734 HG_URL=file:$TESTTMP/a
719
735
720 transaction abort!
736 transaction abort!
@@ -167,6 +167,8 b' pull'
167 HG_NODE_LAST=5fed3813f7f5e1824344fdc9cf8f63bb662c292d
167 HG_NODE_LAST=5fed3813f7f5e1824344fdc9cf8f63bb662c292d
168 HG_SOURCE=pull
168 HG_SOURCE=pull
169 HG_TXNID=TXN:$ID$
169 HG_TXNID=TXN:$ID$
170 HG_TXNNAME=pull
171 http://localhost:$HGPORT1/
170 HG_URL=http://localhost:$HGPORT1/
172 HG_URL=http://localhost:$HGPORT1/
171
173
172 (run 'hg update' to get a working copy)
174 (run 'hg update' to get a working copy)
@@ -156,6 +156,8 b' pull'
156 HG_NODE_LAST=5fed3813f7f5e1824344fdc9cf8f63bb662c292d
156 HG_NODE_LAST=5fed3813f7f5e1824344fdc9cf8f63bb662c292d
157 HG_SOURCE=pull
157 HG_SOURCE=pull
158 HG_TXNID=TXN:$ID$
158 HG_TXNID=TXN:$ID$
159 HG_TXNNAME=pull
160 http://localhost:$HGPORT1/
159 HG_URL=http://localhost:$HGPORT1/
161 HG_URL=http://localhost:$HGPORT1/
160
162
161 (run 'hg update' to get a working copy)
163 (run 'hg update' to get a working copy)
@@ -232,6 +232,8 b' pull without cacert'
232 HG_NODE_LAST=5fed3813f7f5e1824344fdc9cf8f63bb662c292d
232 HG_NODE_LAST=5fed3813f7f5e1824344fdc9cf8f63bb662c292d
233 HG_SOURCE=pull
233 HG_SOURCE=pull
234 HG_TXNID=TXN:$ID$
234 HG_TXNID=TXN:$ID$
235 HG_TXNNAME=pull
236 https://localhost:$HGPORT/
235 HG_URL=https://localhost:$HGPORT/
237 HG_URL=https://localhost:$HGPORT/
236
238
237 (run 'hg update' to get a working copy)
239 (run 'hg update' to get a working copy)
@@ -101,6 +101,8 b' expect success'
101 remote: HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872
101 remote: HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872
102 remote: HG_SOURCE=serve
102 remote: HG_SOURCE=serve
103 remote: HG_TXNID=TXN:$ID$
103 remote: HG_TXNID=TXN:$ID$
104 remote: HG_TXNNAME=serve
105 remote: remote:http:$LOCALIP: (glob)
104 remote: HG_URL=remote:http:$LOCALIP: (glob)
106 remote: HG_URL=remote:http:$LOCALIP: (glob)
105 remote:
107 remote:
106 % serve errors
108 % serve errors
@@ -128,6 +130,8 b' expect success'
128 remote: HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872
130 remote: HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872
129 remote: HG_SOURCE=serve
131 remote: HG_SOURCE=serve
130 remote: HG_TXNID=TXN:$ID$
132 remote: HG_TXNID=TXN:$ID$
133 remote: HG_TXNNAME=serve
134 remote: remote:http:$LOCALIP: (glob)
131 remote: HG_URL=remote:http:$LOCALIP: (glob)
135 remote: HG_URL=remote:http:$LOCALIP: (glob)
132 remote:
136 remote:
133 % serve errors
137 % serve errors
@@ -159,6 +163,7 b' expect success'
159 remote: HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872
163 remote: HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872
160 remote: HG_SOURCE=serve
164 remote: HG_SOURCE=serve
161 remote: HG_TXNID=TXN:$ID$
165 remote: HG_TXNID=TXN:$ID$
166 remote: HG_TXNNAME=serve
162 remote: HG_URL=remote:http:$LOCALIP: (glob)
167 remote: HG_URL=remote:http:$LOCALIP: (glob)
163 remote:
168 remote:
164 % serve errors
169 % serve errors
@@ -187,6 +192,8 b' expect success, server lacks the httphea'
187 remote: HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872
192 remote: HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872
188 remote: HG_SOURCE=serve
193 remote: HG_SOURCE=serve
189 remote: HG_TXNID=TXN:$ID$
194 remote: HG_TXNID=TXN:$ID$
195 remote: HG_TXNNAME=serve
196 remote: remote:http:$LOCALIP: (glob) (no-bundle2 !)
190 remote: HG_URL=remote:http:$LOCALIP: (glob)
197 remote: HG_URL=remote:http:$LOCALIP: (glob)
191 remote:
198 remote:
192 % serve errors
199 % serve errors
@@ -214,6 +221,8 b' expect success, server lacks the unbundl'
214 remote: HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872
221 remote: HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872
215 remote: HG_SOURCE=serve
222 remote: HG_SOURCE=serve
216 remote: HG_TXNID=TXN:$ID$
223 remote: HG_TXNID=TXN:$ID$
224 remote: HG_TXNNAME=serve
225 remote: remote:http:$LOCALIP: (glob) (no-bundle2 !)
217 remote: HG_URL=remote:http:$LOCALIP: (glob)
226 remote: HG_URL=remote:http:$LOCALIP: (glob)
218 remote:
227 remote:
219 % serve errors
228 % serve errors
@@ -253,6 +262,8 b' has no parameter'
253 remote: HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872
262 remote: HG_NODE_LAST=ba677d0156c1196c1a699fa53f390dcfc3ce3872
254 remote: HG_SOURCE=serve
263 remote: HG_SOURCE=serve
255 remote: HG_TXNID=TXN:$ID$
264 remote: HG_TXNID=TXN:$ID$
265 remote: HG_TXNNAME=serve
266 remote: remote:http:$LOCALIP: (glob) (no-bundle2 !)
256 remote: HG_URL=remote:http:$LOCALIP: (glob)
267 remote: HG_URL=remote:http:$LOCALIP: (glob)
257 remote:
268 remote:
258 % serve errors
269 % serve errors
@@ -312,6 +323,7 b' and fails the entire push.'
312 remote: HG_PHASES_MOVED=1
323 remote: HG_PHASES_MOVED=1
313 remote: HG_SOURCE=serve
324 remote: HG_SOURCE=serve
314 remote: HG_TXNID=TXN:$ID$
325 remote: HG_TXNID=TXN:$ID$
326 remote: HG_TXNNAME=serve
315 remote: HG_URL=remote:http:$LOCALIP: (glob)
327 remote: HG_URL=remote:http:$LOCALIP: (glob)
316 remote:
328 remote:
317 remote: pushkey-abort: prepushkey hook exited with status 1
329 remote: pushkey-abort: prepushkey hook exited with status 1
@@ -353,6 +365,7 b" We don't need to test bundle1 because it"
353 remote: HG_PHASES_MOVED=1
365 remote: HG_PHASES_MOVED=1
354 remote: HG_SOURCE=serve
366 remote: HG_SOURCE=serve
355 remote: HG_TXNID=TXN:$ID$
367 remote: HG_TXNID=TXN:$ID$
368 remote: HG_TXNNAME=serve
356 remote: HG_URL=remote:http:$LOCALIP: (glob)
369 remote: HG_URL=remote:http:$LOCALIP: (glob)
357 remote:
370 remote:
358 % serve errors
371 % serve errors
@@ -411,6 +424,7 b' Now do a variant of the above, except on'
411 remote: HG_PHASES_MOVED=1
424 remote: HG_PHASES_MOVED=1
412 remote: HG_SOURCE=serve
425 remote: HG_SOURCE=serve
413 remote: HG_TXNID=TXN:$ID$
426 remote: HG_TXNID=TXN:$ID$
427 remote: HG_TXNNAME=serve
414 remote: HG_URL=remote:http:$LOCALIP: (glob)
428 remote: HG_URL=remote:http:$LOCALIP: (glob)
415 remote:
429 remote:
416 remote: pushkey-abort: prepushkey hook exited with status 1
430 remote: pushkey-abort: prepushkey hook exited with status 1
@@ -465,6 +479,7 b' Make phases updates work'
465 remote: HG_PHASES_MOVED=1
479 remote: HG_PHASES_MOVED=1
466 remote: HG_SOURCE=serve
480 remote: HG_SOURCE=serve
467 remote: HG_TXNID=TXN:$ID$
481 remote: HG_TXNID=TXN:$ID$
482 remote: HG_TXNNAME=serve
468 remote: HG_URL=remote:http:$LOCALIP: (glob)
483 remote: HG_URL=remote:http:$LOCALIP: (glob)
469 remote:
484 remote:
470 % serve errors
485 % serve errors
@@ -520,6 +520,8 b' debug output'
520 HG_NODE_LAST=a28a9d1a809cab7d4e2fde4bee738a9ede948b60
520 HG_NODE_LAST=a28a9d1a809cab7d4e2fde4bee738a9ede948b60
521 HG_SOURCE=serve
521 HG_SOURCE=serve
522 HG_TXNID=TXN:$ID$
522 HG_TXNID=TXN:$ID$
523 HG_TXNNAME=serve
524 remote:ssh:$LOCALIP
523 HG_URL=remote:ssh:$LOCALIP
525 HG_URL=remote:ssh:$LOCALIP
524
526
525 Got arguments 1:user@dummy 2:hg -R remote serve --stdio
527 Got arguments 1:user@dummy 2:hg -R remote serve --stdio
@@ -537,6 +539,8 b' debug output'
537 HG_NODE_LAST=1383141674ec756a6056f6a9097618482fe0f4a6
539 HG_NODE_LAST=1383141674ec756a6056f6a9097618482fe0f4a6
538 HG_SOURCE=serve
540 HG_SOURCE=serve
539 HG_TXNID=TXN:$ID$
541 HG_TXNID=TXN:$ID$
542 HG_TXNNAME=serve
543 remote:ssh:$LOCALIP
540 HG_URL=remote:ssh:$LOCALIP
544 HG_URL=remote:ssh:$LOCALIP
541
545
542 Got arguments 1:user@dummy 2:hg -R remote serve --stdio
546 Got arguments 1:user@dummy 2:hg -R remote serve --stdio
@@ -552,6 +556,8 b' debug output'
552 HG_NODE_LAST=65c38f4125f9602c8db4af56530cc221d93b8ef8
556 HG_NODE_LAST=65c38f4125f9602c8db4af56530cc221d93b8ef8
553 HG_SOURCE=serve
557 HG_SOURCE=serve
554 HG_TXNID=TXN:$ID$
558 HG_TXNID=TXN:$ID$
559 HG_TXNNAME=serve
560 remote:ssh:$LOCALIP
555 HG_URL=remote:ssh:$LOCALIP
561 HG_URL=remote:ssh:$LOCALIP
556
562
557 Got arguments 1:user@dummy 2:hg -R remote serve --stdio
563 Got arguments 1:user@dummy 2:hg -R remote serve --stdio
@@ -570,6 +570,7 b' debug output'
570 HG_NODE_LAST=a28a9d1a809cab7d4e2fde4bee738a9ede948b60
570 HG_NODE_LAST=a28a9d1a809cab7d4e2fde4bee738a9ede948b60
571 HG_SOURCE=serve
571 HG_SOURCE=serve
572 HG_TXNID=TXN:$ID$
572 HG_TXNID=TXN:$ID$
573 HG_TXNNAME=serve
573 HG_URL=remote:ssh:$LOCALIP
574 HG_URL=remote:ssh:$LOCALIP
574
575
575 Got arguments 1:user@dummy 2:hg -R remote serve --stdio
576 Got arguments 1:user@dummy 2:hg -R remote serve --stdio
@@ -588,6 +589,7 b' debug output'
588 HG_NODE_LAST=1383141674ec756a6056f6a9097618482fe0f4a6
589 HG_NODE_LAST=1383141674ec756a6056f6a9097618482fe0f4a6
589 HG_SOURCE=serve
590 HG_SOURCE=serve
590 HG_TXNID=TXN:$ID$
591 HG_TXNID=TXN:$ID$
592 HG_TXNNAME=serve
591 HG_URL=remote:ssh:$LOCALIP
593 HG_URL=remote:ssh:$LOCALIP
592
594
593 Got arguments 1:user@dummy 2:chg -R remote serve --stdio (chg !)
595 Got arguments 1:user@dummy 2:chg -R remote serve --stdio (chg !)
@@ -598,6 +600,7 b' debug output'
598 HG_NODE_LAST=1383141674ec756a6056f6a9097618482fe0f4a6 (chg !)
600 HG_NODE_LAST=1383141674ec756a6056f6a9097618482fe0f4a6 (chg !)
599 HG_SOURCE=serve (chg !)
601 HG_SOURCE=serve (chg !)
600 HG_TXNID=TXN:$ID$ (chg !)
602 HG_TXNID=TXN:$ID$ (chg !)
603 HG_TXNNAME=serve (chg !)
601 HG_URL=remote:ssh:$LOCALIP (chg !)
604 HG_URL=remote:ssh:$LOCALIP (chg !)
602 (chg !)
605 (chg !)
603 Got arguments 1:user@dummy 2:hg -R remote serve --stdio
606 Got arguments 1:user@dummy 2:hg -R remote serve --stdio
@@ -614,6 +617,7 b' debug output'
614 HG_NODE_LAST=65c38f4125f9602c8db4af56530cc221d93b8ef8
617 HG_NODE_LAST=65c38f4125f9602c8db4af56530cc221d93b8ef8
615 HG_SOURCE=serve
618 HG_SOURCE=serve
616 HG_TXNID=TXN:$ID$
619 HG_TXNID=TXN:$ID$
620 HG_TXNNAME=serve
617 HG_URL=remote:ssh:$LOCALIP
621 HG_URL=remote:ssh:$LOCALIP
618
622
619 Got arguments 1:user@dummy 2:hg -R remote serve --stdio
623 Got arguments 1:user@dummy 2:hg -R remote serve --stdio
@@ -73,6 +73,8 b' check for HTTP opener failures when cach'
73 HG_NODE_LAST=4ac2e3648604439c580c69b09ec9d93a88d93432
73 HG_NODE_LAST=4ac2e3648604439c580c69b09ec9d93a88d93432
74 HG_SOURCE=pull
74 HG_SOURCE=pull
75 HG_TXNID=TXN:$ID$
75 HG_TXNID=TXN:$ID$
76 HG_TXNNAME=pull
77 http://localhost:$HGPORT/remote
76 HG_URL=http://localhost:$HGPORT/remote
78 HG_URL=http://localhost:$HGPORT/remote
77
79
78 (run 'hg update' to get a working copy)
80 (run 'hg update' to get a working copy)
General Comments 0
You need to be logged in to leave comments. Login now