Mercurial > hg > mercurial-crew-with-dirclash
view tests/test-branch.out @ 4095:6fa7a2d0fc2e
hgweb: catch util.Abort raised by addchangegroup
Right now, if a pretxnchangegroup hook fails, we send some HTML
error message to the client and the transaction is not rolled back
(issue499).
Catching util.Abort allows us to send a decent message to the client
and for some reason makes the rollback complete.
This patch is not perfect since it doesn't fix the reason why the
transaction wasn't rolled back (maybe some circular references?).
Also, the transaction is aborted only after we've sent the response
back to the client and the "transaction aborted" message ends up in
the logs of the web server.
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Fri, 16 Feb 2007 05:10:43 -0200 |
parents | b28d3e0f9a8c |
children |
line wrap: on
line source
adding a adding b 2 files updated, 0 files merged, 0 files removed, 0 files unresolved the --branches option is deprecated, please use 'hg branches' instead changeset: 0:b544c4ac4389 user: test date: Mon Jan 12 13:46:40 1970 +0000 summary: 0 the --branch option is deprecated, please use 'hg branch' instead Using head f4ac749470f2 for branch foo 2 files updated, 0 files merged, 0 files removed, 0 files unresolved changeset: 1:f4ac749470f2 tag: foo tag: tip user: test date: Mon Jan 12 13:46:40 1970 +0000 summary: 1 2 files updated, 0 files merged, 0 files removed, 0 files unresolved adding c the --branch option is deprecated, please use 'hg branch' instead Using head f4ac749470f2 for branch foo 2 files updated, 0 files merged, 0 files removed, 0 files unresolved (branch merge, don't forget to commit) the --branches option is deprecated, please use 'hg branches' instead changeset: 2:1505d56ee00e tag: tip parent: 0:b544c4ac4389 user: test date: Mon Jan 12 13:46:40 1970 +0000 summary: 0.0 changeset: 1:f4ac749470f2 tag: foo branch: foo user: test date: Mon Jan 12 13:46:40 1970 +0000 summary: 1 2 files updated, 0 files merged, 1 files removed, 0 files unresolved adding d the --branch option is deprecated, please use 'hg branch' instead Using head f4ac749470f2 for branch foo 2 files updated, 0 files merged, 0 files removed, 0 files unresolved (branch merge, don't forget to commit) the --branches option is deprecated, please use 'hg branches' instead changeset: 3:53b72df12ae5 tag: tip parent: 0:b544c4ac4389 user: test date: Mon Jan 12 13:46:40 1970 +0000 summary: 0.0 changeset: 1:f4ac749470f2 tag: foo branch: foo user: test date: Mon Jan 12 13:46:40 1970 +0000 summary: 1