Show More
@@ -3,16 +3,16 b' Test the extensions.afterloaded() functi' | |||||
3 | $ cat > foo.py <<EOF |
|
3 | $ cat > foo.py <<EOF | |
4 | > from mercurial import extensions |
|
4 | > from mercurial import extensions | |
5 | > def uisetup(ui): |
|
5 | > def uisetup(ui): | |
6 | > ui.write("foo.uisetup\\n") |
|
6 | > ui.write(b"foo.uisetup\\n") | |
7 | > ui.flush() |
|
7 | > ui.flush() | |
8 | > def bar_loaded(loaded): |
|
8 | > def bar_loaded(loaded): | |
9 | > ui.write("foo: bar loaded: %r\\n" % (loaded,)) |
|
9 | > ui.write(b"foo: bar loaded: %r\\n" % (loaded,)) | |
10 | > ui.flush() |
|
10 | > ui.flush() | |
11 | > extensions.afterloaded('bar', bar_loaded) |
|
11 | > extensions.afterloaded(b'bar', bar_loaded) | |
12 | > EOF |
|
12 | > EOF | |
13 | $ cat > bar.py <<EOF |
|
13 | $ cat > bar.py <<EOF | |
14 | > def uisetup(ui): |
|
14 | > def uisetup(ui): | |
15 | > ui.write("bar.uisetup\\n") |
|
15 | > ui.write(b"bar.uisetup\\n") | |
16 | > ui.flush() |
|
16 | > ui.flush() | |
17 | > EOF |
|
17 | > EOF | |
18 | $ basepath=`pwd` |
|
18 | $ basepath=`pwd` | |
@@ -72,9 +72,9 b' configured but fails the minimum version' | |||||
72 |
|
72 | |||
73 | $ cd .. |
|
73 | $ cd .. | |
74 | $ cat > minvers.py <<EOF |
|
74 | $ cat > minvers.py <<EOF | |
75 | > minimumhgversion = '9999.9999' |
|
75 | > minimumhgversion = b'9999.9999' | |
76 | > def uisetup(ui): |
|
76 | > def uisetup(ui): | |
77 | > ui.write("minvers.uisetup\\n") |
|
77 | > ui.write(b"minvers.uisetup\\n") | |
78 | > ui.flush() |
|
78 | > ui.flush() | |
79 | > EOF |
|
79 | > EOF | |
80 | $ hg init minversion |
|
80 | $ hg init minversion |
General Comments 0
You need to be logged in to leave comments.
Login now