##// END OF EJS Templates
global: mass rewrite to use modern exception syntax...
global: mass rewrite to use modern exception syntax Python 2.6 introduced the "except type as instance" syntax, replacing the "except type, instance" syntax that came before. Python 3 dropped support for the latter syntax. Since we no longer support Python 2.4 or 2.5, we have no need to continue supporting the "except type, instance". This patch mass rewrites the exception syntax to be Python 2.6+ and Python 3 compatible. This patch was produced by running `2to3 -f except -w -n .`.

File last commit:

r23840:ddc17eaf default
r25660:328739ea default
Show More
test-rebuildstate.t
30 lines | 406 B | text/troff | Tads3Lexer
/ tests / test-rebuildstate.t
Nicolas Dumazet
tests: unify test-rebuildstate
r12121 basic test for hg debugrebuildstate
$ hg init repo
$ cd repo
$ touch foo bar
$ hg ci -Am 'add foo bar'
adding bar
adding foo
$ touch baz
$ hg add baz
$ hg rm bar
$ hg debugrebuildstate
state dump after
$ hg debugstate --nodates | sort
Mads Kiilerich
debugdirstate: don't hide date field with --nodate, just show 'set'/'unset'...
r23840 n 644 -1 set bar
n 644 -1 set foo
Nicolas Dumazet
tests: unify test-rebuildstate
r12121
status
$ hg st -A
! bar
? baz
C foo
Mads Kiilerich
tests: add missing trailing 'cd ..'...
r16913 $ cd ..