##// 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:

r40226:31dfa7da default
r45469:9e5b4dbe default
Show More
test-absorb-phase.t
30 lines | 389 B | text/troff | Tads3Lexer
/ tests / test-absorb-phase.t
Augie Fackler
absorb: import extension from Facebook's hg-experimental...
r38953 $ cat >> $HGRCPATH << EOF
> [extensions]
> absorb=
Augie Fackler
tests: fix a couple of drawdag.py references...
r39703 > drawdag=$TESTDIR/drawdag.py
Augie Fackler
absorb: import extension from Facebook's hg-experimental...
r38953 > EOF
$ hg init
$ hg debugdrawdag <<'EOS'
> C
> |
> B
> |
> A
> EOS
$ hg phase -r A --public -q
$ hg phase -r C --secret --force -q
$ hg update C -q
$ printf B1 > B
Mark Thomas
absorb: prompt user to accept absorb changes by default...
r40226 $ hg absorb -aq
Augie Fackler
absorb: import extension from Facebook's hg-experimental...
r38953
$ hg log -G -T '{desc} {phase}'
@ C secret
|
o B draft
|
o A public