##// END OF EJS Templates
localrepo: handle ValueError during repository opening...
localrepo: handle ValueError during repository opening Python 3.8 can raise ValueError on attempt of an I/O operation against an illegal path. This was causing test-remotefilelog-gc.t to fail on Python 3.8. This commit teaches repository opening to handle ValueError and re-raise an Abort on failure. An arguably better solution would be to implement this logic in the vfs layer. But that seems like a bag of worms and I don't want to go down that rabbit hole. Until users report uncaught ValueError exceptions in the wild, I think it is fine to patch this at the only occurrence our test harness is finding it. Differential Revision: https://phab.mercurial-scm.org/D7944

File last commit:

r38015:6f9ac3cb default
r45469:9e5b4dbe default
Show More
test-dispatch.py.out
23 lines | 466 B | text/plain | TextLexer
/ tests / test-dispatch.py.out
Thomas Arendsen Hein
Added test for commands.dispatch (especially 88803a69b24)
r5095 running: init test1
Yuya Nishihara
dispatch: unify handling of None returned by a command function...
r38015 result: 0
Thomas Arendsen Hein
Added test for commands.dispatch (especially 88803a69b24)
r5095 running: add foo
Patrick Mezard
commands: add exits(1) if a specified file cannot be added (issue 891)
r5688 result: 0
Thomas Arendsen Hein
Added test for commands.dispatch (especially 88803a69b24)
r5095 running: commit -m commit1 -d 2000-01-01 foo
Yuya Nishihara
dispatch: unify handling of None returned by a command function...
r38015 result: 0
Thomas Arendsen Hein
Added test for commands.dispatch (especially 88803a69b24)
r5095 running: commit -m commit2 -d 2000-01-02 foo
Yuya Nishihara
dispatch: unify handling of None returned by a command function...
r38015 result: 0
Thomas Arendsen Hein
Added test for commands.dispatch (especially 88803a69b24)
r5095 running: log -r 0
changeset: 0:0e4634943879
user: test
date: Sat Jan 01 00:00:00 2000 +0000
summary: commit1
Yuya Nishihara
dispatch: unify handling of None returned by a command function...
r38015 result: 0
Thomas Arendsen Hein
Added test for commands.dispatch (especially 88803a69b24)
r5095 running: log -r tip
changeset: 1:45589e459b2e
tag: tip
user: test
date: Sun Jan 02 00:00:00 2000 +0000
summary: commit2
Yuya Nishihara
dispatch: unify handling of None returned by a command function...
r38015 result: 0