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