Show More
@@ -17,7 +17,7 b' initialize repository' | |||||
17 | > from mercurial import demandimport; demandimport.enable() |
|
17 | > from mercurial import demandimport; demandimport.enable() | |
18 | > from mercurial.hgweb import hgweb |
|
18 | > from mercurial.hgweb import hgweb | |
19 | > from mercurial.hgweb import wsgicgi |
|
19 | > from mercurial.hgweb import wsgicgi | |
20 | > application = hgweb("test", "Empty test repository") |
|
20 | > application = hgweb(b"test", b"Empty test repository") | |
21 | > wsgicgi.launch(application) |
|
21 | > wsgicgi.launch(application) | |
22 | > HGWEB |
|
22 | > HGWEB | |
23 | $ chmod 755 hgweb.cgi |
|
23 | $ chmod 755 hgweb.cgi |
@@ -559,8 +559,8 b' iterable in addbranchrevs()' | |||||
559 | $ cat <<EOF > simpleclone.py |
|
559 | $ cat <<EOF > simpleclone.py | |
560 | > from mercurial import ui, hg |
|
560 | > from mercurial import ui, hg | |
561 | > myui = ui.ui.load() |
|
561 | > myui = ui.ui.load() | |
562 | > repo = hg.repository(myui, 'a') |
|
562 | > repo = hg.repository(myui, b'a') | |
563 | > hg.clone(myui, {}, repo, dest="ua") |
|
563 | > hg.clone(myui, {}, repo, dest=b"ua") | |
564 | > EOF |
|
564 | > EOF | |
565 |
|
565 | |||
566 | $ $PYTHON simpleclone.py |
|
566 | $ $PYTHON simpleclone.py | |
@@ -573,8 +573,8 b' iterable in addbranchrevs()' | |||||
573 | > from mercurial import ui, hg, extensions |
|
573 | > from mercurial import ui, hg, extensions | |
574 | > myui = ui.ui.load() |
|
574 | > myui = ui.ui.load() | |
575 | > extensions.loadall(myui) |
|
575 | > extensions.loadall(myui) | |
576 | > repo = hg.repository(myui, 'a') |
|
576 | > repo = hg.repository(myui, b'a') | |
577 | > hg.clone(myui, {}, repo, dest="ua", branch=["stable",]) |
|
577 | > hg.clone(myui, {}, repo, dest=b"ua", branch=[b"stable",]) | |
578 | > EOF |
|
578 | > EOF | |
579 |
|
579 | |||
580 | $ $PYTHON branchclone.py |
|
580 | $ $PYTHON branchclone.py |
General Comments 0
You need to be logged in to leave comments.
Login now