Show More
@@ -345,7 +345,7 b' The default interface is text' | |||||
345 | > $PYTHON <<EOF |
|
345 | > $PYTHON <<EOF | |
346 | > from mercurial import hg, ui;\ |
|
346 | > from mercurial import hg, ui;\ | |
347 | > repo = hg.repository(ui.ui.load(), ".");\ |
|
347 | > repo = hg.repository(ui.ui.load(), ".");\ | |
348 |
> print |
|
348 | > print(repo.ui.interface("chunkselector")) | |
349 | > EOF |
|
349 | > EOF | |
350 | > } |
|
350 | > } | |
351 | $ chunkselectorinterface |
|
351 | $ chunkselectorinterface |
@@ -90,7 +90,7 b' now test that we fixed the bug for all s' | |||||
90 | > f.close() |
|
90 | > f.close() | |
91 | > |
|
91 | > | |
92 | > def printfiles(repo, rev): |
|
92 | > def printfiles(repo, rev): | |
93 |
> print |
|
93 | > print("revision %s files: %s" % (rev, repo[rev].files())) | |
94 | > |
|
94 | > | |
95 | > repo = hg.repository(ui.ui.load(), '.') |
|
95 | > repo = hg.repository(ui.ui.load(), '.') | |
96 | > assert len(repo) == 6, \ |
|
96 | > assert len(repo) == 6, \ | |
@@ -99,14 +99,14 b' now test that we fixed the bug for all s' | |||||
99 | > replacebyte("bugfix", "u") |
|
99 | > replacebyte("bugfix", "u") | |
100 | > sleep(2) |
|
100 | > sleep(2) | |
101 | > try: |
|
101 | > try: | |
102 |
> print |
|
102 | > print("PRE: len(repo): %d" % len(repo)) | |
103 | > wlock = repo.wlock() |
|
103 | > wlock = repo.wlock() | |
104 | > lock = repo.lock() |
|
104 | > lock = repo.lock() | |
105 | > replacebyte("file1", "x") |
|
105 | > replacebyte("file1", "x") | |
106 | > repo.commit(text="x", user="test", date=(0, 0)) |
|
106 | > repo.commit(text="x", user="test", date=(0, 0)) | |
107 | > replacebyte("file1", "y") |
|
107 | > replacebyte("file1", "y") | |
108 | > repo.commit(text="y", user="test", date=(0, 0)) |
|
108 | > repo.commit(text="y", user="test", date=(0, 0)) | |
109 |
> print |
|
109 | > print("POST: len(repo): %d" % len(repo)) | |
110 | > finally: |
|
110 | > finally: | |
111 | > lock.release() |
|
111 | > lock.release() | |
112 | > wlock.release() |
|
112 | > wlock.release() |
@@ -213,32 +213,32 b'' | |||||
213 | [1] |
|
213 | [1] | |
214 |
|
214 | |||
215 | $ cat > ./map-inside-gettext.py <<EOF |
|
215 | $ cat > ./map-inside-gettext.py <<EOF | |
216 |
> print |
|
216 | > print(_("map inside gettext %s" % v)) | |
217 | > |
|
217 | > | |
218 |
> print |
|
218 | > print(_("concatenating " " by " " space %s" % v)) | |
219 |
> print |
|
219 | > print(_("concatenating " + " by " + " '+' %s" % v)) | |
220 | > |
|
220 | > | |
221 |
> print |
|
221 | > print(_("mapping operation in different line %s" | |
222 | > % v) |
|
222 | > % v)) | |
223 | > |
|
223 | > | |
224 |
> print |
|
224 | > print(_( | |
225 | > "leading spaces inside of '(' %s" % v) |
|
225 | > "leading spaces inside of '(' %s" % v)) | |
226 | > EOF |
|
226 | > EOF | |
227 | $ "$check_code" ./map-inside-gettext.py |
|
227 | $ "$check_code" ./map-inside-gettext.py | |
228 | ./map-inside-gettext.py:1: |
|
228 | ./map-inside-gettext.py:1: | |
229 |
> print |
|
229 | > print(_("map inside gettext %s" % v)) | |
230 | don't use % inside _() |
|
230 | don't use % inside _() | |
231 | ./map-inside-gettext.py:3: |
|
231 | ./map-inside-gettext.py:3: | |
232 |
> print |
|
232 | > print(_("concatenating " " by " " space %s" % v)) | |
233 | don't use % inside _() |
|
233 | don't use % inside _() | |
234 | ./map-inside-gettext.py:4: |
|
234 | ./map-inside-gettext.py:4: | |
235 |
> print |
|
235 | > print(_("concatenating " + " by " + " '+' %s" % v)) | |
236 | don't use % inside _() |
|
236 | don't use % inside _() | |
237 | ./map-inside-gettext.py:6: |
|
237 | ./map-inside-gettext.py:6: | |
238 |
> print |
|
238 | > print(_("mapping operation in different line %s" | |
239 | don't use % inside _() |
|
239 | don't use % inside _() | |
240 | ./map-inside-gettext.py:9: |
|
240 | ./map-inside-gettext.py:9: | |
241 |
> print |
|
241 | > print(_( | |
242 | don't use % inside _() |
|
242 | don't use % inside _() | |
243 | [1] |
|
243 | [1] | |
244 |
|
244 |
@@ -12,10 +12,10 b'' | |||||
12 | $ echo "convert = " >> $HGRCPATH |
|
12 | $ echo "convert = " >> $HGRCPATH | |
13 | $ cat > cvshooks.py <<EOF |
|
13 | $ cat > cvshooks.py <<EOF | |
14 | > def cvslog(ui,repo,hooktype,log): |
|
14 | > def cvslog(ui,repo,hooktype,log): | |
15 |
> print |
|
15 | > print("%s hook: %d entries"%(hooktype,len(log))) | |
16 | > |
|
16 | > | |
17 | > def cvschangesets(ui,repo,hooktype,changesets): |
|
17 | > def cvschangesets(ui,repo,hooktype,changesets): | |
18 |
> print |
|
18 | > print("%s hook: %d changesets"%(hooktype,len(changesets))) | |
19 | > EOF |
|
19 | > EOF | |
20 | $ hookpath=`pwd` |
|
20 | $ hookpath=`pwd` | |
21 | $ cat <<EOF >> $HGRCPATH |
|
21 | $ cat <<EOF >> $HGRCPATH |
@@ -16,7 +16,7 b' Set up helpers' | |||||
16 | > except ImportError: |
|
16 | > except ImportError: | |
17 | > pass |
|
17 | > pass | |
18 | > (old, new) = sys.argv[1] == 'LF' and ('\n', '\r\n') or ('\r\n', '\n') |
|
18 | > (old, new) = sys.argv[1] == 'LF' and ('\n', '\r\n') or ('\r\n', '\n') | |
19 |
> print |
|
19 | > print("%% switching encoding from %r to %r" % (old, new)) | |
20 | > for path in sys.argv[2:]: |
|
20 | > for path in sys.argv[2:]: | |
21 | > data = file(path, 'rb').read() |
|
21 | > data = file(path, 'rb').read() | |
22 | > data = data.replace(old, new) |
|
22 | > data = data.replace(old, new) |
@@ -75,13 +75,13 b' Check that extensions are loaded in phas' | |||||
75 | $ cat > foo.py <<EOF |
|
75 | $ cat > foo.py <<EOF | |
76 | > import os |
|
76 | > import os | |
77 | > name = os.path.basename(__file__).rsplit('.', 1)[0] |
|
77 | > name = os.path.basename(__file__).rsplit('.', 1)[0] | |
78 |
> print |
|
78 | > print("1) %s imported" % name) | |
79 | > def uisetup(ui): |
|
79 | > def uisetup(ui): | |
80 |
> print |
|
80 | > print("2) %s uisetup" % name) | |
81 | > def extsetup(): |
|
81 | > def extsetup(): | |
82 |
> print |
|
82 | > print("3) %s extsetup" % name) | |
83 | > def reposetup(ui, repo): |
|
83 | > def reposetup(ui, repo): | |
84 |
> print |
|
84 | > print("4) %s reposetup" % name) | |
85 | > |
|
85 | > | |
86 | > # custom predicate to check registration of functions at loading |
|
86 | > # custom predicate to check registration of functions at loading | |
87 | > from mercurial import ( |
|
87 | > from mercurial import ( | |
@@ -172,7 +172,7 b' Check "from __future__ import absolute_i' | |||||
172 | $ cat > loadabs.py <<EOF |
|
172 | $ cat > loadabs.py <<EOF | |
173 | > import mod.ambigabs as ambigabs |
|
173 | > import mod.ambigabs as ambigabs | |
174 | > def extsetup(): |
|
174 | > def extsetup(): | |
175 |
> print |
|
175 | > print('ambigabs.s=%s' % ambigabs.s) | |
176 | > EOF |
|
176 | > EOF | |
177 | $ (PYTHONPATH=${PYTHONPATH}${PATHSEP}${TESTTMP}/libroot; hg --config extensions.loadabs=loadabs.py root) |
|
177 | $ (PYTHONPATH=${PYTHONPATH}${PATHSEP}${TESTTMP}/libroot; hg --config extensions.loadabs=loadabs.py root) | |
178 | ambigabs.s=libroot/ambig.py |
|
178 | ambigabs.s=libroot/ambig.py | |
@@ -186,7 +186,7 b' Check "from __future__ import absolute_i' | |||||
186 | $ cat > loadrel.py <<EOF |
|
186 | $ cat > loadrel.py <<EOF | |
187 | > import mod.ambigrel as ambigrel |
|
187 | > import mod.ambigrel as ambigrel | |
188 | > def extsetup(): |
|
188 | > def extsetup(): | |
189 |
> print |
|
189 | > print('ambigrel.s=%s' % ambigrel.s) | |
190 | > EOF |
|
190 | > EOF | |
191 | $ (PYTHONPATH=${PYTHONPATH}${PATHSEP}${TESTTMP}/libroot; hg --config extensions.loadrel=loadrel.py root) |
|
191 | $ (PYTHONPATH=${PYTHONPATH}${PATHSEP}${TESTTMP}/libroot; hg --config extensions.loadrel=loadrel.py root) | |
192 | ambigrel.s=libroot/mod/ambig.py |
|
192 | ambigrel.s=libroot/mod/ambig.py |
@@ -2,8 +2,9 b" This test makes sure that we don't mark " | |||||
2 | when we do a merge. |
|
2 | when we do a merge. | |
3 |
|
3 | |||
4 | $ cat <<EOF > merge |
|
4 | $ cat <<EOF > merge | |
|
5 | > from __future__ import print_function | |||
5 | > import sys, os |
|
6 | > import sys, os | |
6 |
> print |
|
7 | > print("merging for", os.path.basename(sys.argv[1])) | |
7 | > EOF |
|
8 | > EOF | |
8 | $ HGMERGE="$PYTHON ../merge"; export HGMERGE |
|
9 | $ HGMERGE="$PYTHON ../merge"; export HGMERGE | |
9 |
|
10 |
@@ -1633,7 +1633,7 b' Test multiple --include/--exclude/paths' | |||||
1633 | Test glob expansion of pats |
|
1633 | Test glob expansion of pats | |
1634 |
|
1634 | |||
1635 | $ expandglobs=`$PYTHON -c "import mercurial.util; \ |
|
1635 | $ expandglobs=`$PYTHON -c "import mercurial.util; \ | |
1636 |
> print |
|
1636 | > print(mercurial.util.expandglobs and 'true' or 'false')"` | |
1637 | $ if [ $expandglobs = "true" ]; then |
|
1637 | $ if [ $expandglobs = "true" ]; then | |
1638 | > testlog 'a*'; |
|
1638 | > testlog 'a*'; | |
1639 | > else |
|
1639 | > else |
@@ -1,11 +1,12 b'' | |||||
1 | #require hardlink |
|
1 | #require hardlink | |
2 |
|
2 | |||
3 | $ cat > nlinks.py <<EOF |
|
3 | $ cat > nlinks.py <<EOF | |
|
4 | > from __future__ import print_function | |||
4 | > import sys |
|
5 | > import sys | |
5 | > from mercurial import util |
|
6 | > from mercurial import util | |
6 | > for f in sorted(sys.stdin.readlines()): |
|
7 | > for f in sorted(sys.stdin.readlines()): | |
7 | > f = f[:-1] |
|
8 | > f = f[:-1] | |
8 |
> print |
|
9 | > print(util.nlinks(f), f) | |
9 | > EOF |
|
10 | > EOF | |
10 |
|
11 | |||
11 | $ nlinksdir() |
|
12 | $ nlinksdir() |
@@ -1709,7 +1709,7 b' such str.lower().' | |||||
1709 |
|
1709 | |||
1710 | $ $PYTHON <<EOF | sh |
|
1710 | $ $PYTHON <<EOF | sh | |
1711 | > upper = "\x8bL\x98^" |
|
1711 | > upper = "\x8bL\x98^" | |
1712 |
> print |
|
1712 | > print("hg --encoding cp932 help -e ambiguous.%s" % upper) | |
1713 | > EOF |
|
1713 | > EOF | |
1714 | \x8bL\x98^ (esc) |
|
1714 | \x8bL\x98^ (esc) | |
1715 | ---- |
|
1715 | ---- | |
@@ -1719,7 +1719,7 b' such str.lower().' | |||||
1719 |
|
1719 | |||
1720 | $ $PYTHON <<EOF | sh |
|
1720 | $ $PYTHON <<EOF | sh | |
1721 | > lower = "\x8bl\x98^" |
|
1721 | > lower = "\x8bl\x98^" | |
1722 |
> print |
|
1722 | > print("hg --encoding cp932 help -e ambiguous.%s" % lower) | |
1723 | > EOF |
|
1723 | > EOF | |
1724 | \x8bl\x98^ (esc) |
|
1724 | \x8bl\x98^ (esc) | |
1725 | ---- |
|
1725 | ---- |
@@ -409,6 +409,7 b' preoutgoing hook can prevent outgoing ch' | |||||
409 | $ cd "$TESTTMP/b" |
|
409 | $ cd "$TESTTMP/b" | |
410 |
|
410 | |||
411 | $ cat > hooktests.py <<EOF |
|
411 | $ cat > hooktests.py <<EOF | |
|
412 | > from __future__ import print_function | |||
412 | > from mercurial import error |
|
413 | > from mercurial import error | |
413 | > |
|
414 | > | |
414 | > uncallable = 0 |
|
415 | > uncallable = 0 | |
@@ -418,9 +419,9 b' preoutgoing hook can prevent outgoing ch' | |||||
418 | > args.pop('repo', None) |
|
419 | > args.pop('repo', None) | |
419 | > a = list(args.items()) |
|
420 | > a = list(args.items()) | |
420 | > a.sort() |
|
421 | > a.sort() | |
421 |
> print |
|
422 | > print('hook args:') | |
422 | > for k, v in a: |
|
423 | > for k, v in a: | |
423 |
> print |
|
424 | > print(' ', k, v) | |
424 | > |
|
425 | > | |
425 | > def passhook(**args): |
|
426 | > def passhook(**args): | |
426 | > printargs(args) |
|
427 | > printargs(args) | |
@@ -445,7 +446,7 b' preoutgoing hook can prevent outgoing ch' | |||||
445 | > ui.note('verbose output from hook\n') |
|
446 | > ui.note('verbose output from hook\n') | |
446 | > |
|
447 | > | |
447 | > def printtags(ui, repo, **args): |
|
448 | > def printtags(ui, repo, **args): | |
448 |
> print |
|
449 | > print(sorted(repo.tags())) | |
449 | > |
|
450 | > | |
450 | > class container: |
|
451 | > class container: | |
451 | > unreachable = 1 |
|
452 | > unreachable = 1 | |
@@ -630,7 +631,7 b' make sure --traceback works' | |||||
630 |
|
631 | |||
631 | $ cat > hookext.py <<EOF |
|
632 | $ cat > hookext.py <<EOF | |
632 | > def autohook(**args): |
|
633 | > def autohook(**args): | |
633 |
> print |
|
634 | > print("Automatically installed hook") | |
634 | > |
|
635 | > | |
635 | > def reposetup(ui, repo): |
|
636 | > def reposetup(ui, repo): | |
636 | > repo.ui.setconfig("hooks", "commit.auto", autohook) |
|
637 | > repo.ui.setconfig("hooks", "commit.auto", autohook) | |
@@ -667,7 +668,7 b' test python hook configured with python:' | |||||
667 | $ cd hooks |
|
668 | $ cd hooks | |
668 | $ cat > testhooks.py <<EOF |
|
669 | $ cat > testhooks.py <<EOF | |
669 | > def testhook(**args): |
|
670 | > def testhook(**args): | |
670 |
> print |
|
671 | > print('hook works') | |
671 | > EOF |
|
672 | > EOF | |
672 | $ echo '[hooks]' > ../repo/.hg/hgrc |
|
673 | $ echo '[hooks]' > ../repo/.hg/hgrc | |
673 | $ echo "pre-commit.test = python:`pwd`/testhooks.py:testhook" >> ../repo/.hg/hgrc |
|
674 | $ echo "pre-commit.test = python:`pwd`/testhooks.py:testhook" >> ../repo/.hg/hgrc |
@@ -25,13 +25,13 b' just in case somebody has a strange $TMP' | |||||
25 | > allnames.sort() |
|
25 | > allnames.sort() | |
26 | > for name in allnames: |
|
26 | > for name in allnames: | |
27 | > suffix = name in isdir and '/' or '' |
|
27 | > suffix = name in isdir and '/' or '' | |
28 |
> print |
|
28 | > print('%05o %s%s' % (os.lstat(name).st_mode & 07777, name, suffix)) | |
29 | > EOF |
|
29 | > EOF | |
30 |
|
30 | |||
31 |
$ |
|
31 | $ cat >mode.py <<EOF | |
32 | > import sys |
|
32 | > import sys | |
33 | > import os |
|
33 | > import os | |
34 |
> print |
|
34 | > print('%05o' % os.lstat(sys.argv[1]).st_mode) | |
35 | > EOF |
|
35 | > EOF | |
36 |
|
36 | |||
37 |
$ |
|
37 | $ umask 077 |
@@ -8,7 +8,7 b' A script to generate nasty diff worst-ca' | |||||
8 |
|
8 | |||
9 | > if random.randint(0, 100) >= 50: |
|
9 | > if random.randint(0, 100) >= 50: | |
10 | > x += 1 |
|
10 | > x += 1 | |
11 |
> print |
|
11 | > print(hex(x)) | |
12 | > EOF |
|
12 | > EOF | |
13 |
|
13 | |||
14 | $ hg init a |
|
14 | $ hg init a |
@@ -96,7 +96,7 b' Portable way to print file permissions:' | |||||
96 | > #!$PYTHON |
|
96 | > #!$PYTHON | |
97 | > import sys, os |
|
97 | > import sys, os | |
98 | > path = sys.argv[1] |
|
98 | > path = sys.argv[1] | |
99 |
> print |
|
99 | > print('%03o' % (os.lstat(path).st_mode & 0777)) | |
100 | > EOF |
|
100 | > EOF | |
101 |
$ |
|
101 | $ chmod +x ls-l.py | |
102 |
|
102 |
@@ -1793,7 +1793,7 b' test -u/-k for problematic encoding' | |||||
1793 | $ cd problematicencoding |
|
1793 | $ cd problematicencoding | |
1794 |
|
1794 | |||
1795 | $ $PYTHON > setup.sh <<EOF |
|
1795 | $ $PYTHON > setup.sh <<EOF | |
1796 |
> print |
|
1796 | > print(u''' | |
1797 | > echo a > text |
|
1797 | > echo a > text | |
1798 | > hg add text |
|
1798 | > hg add text | |
1799 | > hg --encoding utf-8 commit -u '\u30A2' -m none |
|
1799 | > hg --encoding utf-8 commit -u '\u30A2' -m none | |
@@ -1803,13 +1803,13 b' test -u/-k for problematic encoding' | |||||
1803 | > hg --encoding utf-8 commit -u none -m '\u30A2' |
|
1803 | > hg --encoding utf-8 commit -u none -m '\u30A2' | |
1804 | > echo d > text |
|
1804 | > echo d > text | |
1805 | > hg --encoding utf-8 commit -u none -m '\u30C2' |
|
1805 | > hg --encoding utf-8 commit -u none -m '\u30C2' | |
1806 | > '''.encode('utf-8') |
|
1806 | > '''.encode('utf-8')) | |
1807 | > EOF |
|
1807 | > EOF | |
1808 | $ sh < setup.sh |
|
1808 | $ sh < setup.sh | |
1809 |
|
1809 | |||
1810 | test in problematic encoding |
|
1810 | test in problematic encoding | |
1811 | $ $PYTHON > test.sh <<EOF |
|
1811 | $ $PYTHON > test.sh <<EOF | |
1812 |
> print |
|
1812 | > print(u''' | |
1813 | > hg --encoding cp932 log --template '{rev}\\n' -u '\u30A2' |
|
1813 | > hg --encoding cp932 log --template '{rev}\\n' -u '\u30A2' | |
1814 | > echo ==== |
|
1814 | > echo ==== | |
1815 | > hg --encoding cp932 log --template '{rev}\\n' -u '\u30C2' |
|
1815 | > hg --encoding cp932 log --template '{rev}\\n' -u '\u30C2' | |
@@ -1817,7 +1817,7 b' test in problematic encoding' | |||||
1817 | > hg --encoding cp932 log --template '{rev}\\n' -k '\u30A2' |
|
1817 | > hg --encoding cp932 log --template '{rev}\\n' -k '\u30A2' | |
1818 | > echo ==== |
|
1818 | > echo ==== | |
1819 | > hg --encoding cp932 log --template '{rev}\\n' -k '\u30C2' |
|
1819 | > hg --encoding cp932 log --template '{rev}\\n' -k '\u30C2' | |
1820 | > '''.encode('cp932') |
|
1820 | > '''.encode('cp932')) | |
1821 | > EOF |
|
1821 | > EOF | |
1822 | $ sh < test.sh |
|
1822 | $ sh < test.sh | |
1823 | 0 |
|
1823 | 0 |
@@ -1,5 +1,6 b'' | |||||
1 | $ cat > echo.py <<EOF |
|
1 | $ cat > echo.py <<EOF | |
2 | > #!$PYTHON |
|
2 | > #!$PYTHON | |
|
3 | > from __future__ import print_function | |||
3 | > import os, sys |
|
4 | > import os, sys | |
4 | > try: |
|
5 | > try: | |
5 | > import msvcrt |
|
6 | > import msvcrt | |
@@ -9,7 +10,7 b'' | |||||
9 | > pass |
|
10 | > pass | |
10 | > |
|
11 | > | |
11 | > for k in ('HG_FILE', 'HG_MY_ISLINK', 'HG_OTHER_ISLINK', 'HG_BASE_ISLINK'): |
|
12 | > for k in ('HG_FILE', 'HG_MY_ISLINK', 'HG_OTHER_ISLINK', 'HG_BASE_ISLINK'): | |
12 |
> print |
|
13 | > print(k, os.environ[k]) | |
13 | > EOF |
|
14 | > EOF | |
14 |
|
15 | |||
15 | Create 2 heads containing the same file, once as |
|
16 | Create 2 heads containing the same file, once as |
@@ -1,4 +1,5 b'' | |||||
1 | $ cat <<EOF > merge |
|
1 | $ cat <<EOF > merge | |
|
2 | > from __future__ import print_function | |||
2 | > import sys, os |
|
3 | > import sys, os | |
3 | > |
|
4 | > | |
4 | > try: |
|
5 | > try: | |
@@ -8,7 +9,7 b'' | |||||
8 | > except ImportError: |
|
9 | > except ImportError: | |
9 | > pass |
|
10 | > pass | |
10 | > |
|
11 | > | |
11 |
> print |
|
12 | > print("merging for", os.path.basename(sys.argv[1])) | |
12 | > EOF |
|
13 | > EOF | |
13 |
$ |
|
14 | $ HGMERGE="$PYTHON ../merge"; export HGMERGE | |
14 |
|
15 |
@@ -1,6 +1,6 b'' | |||||
1 | $ cat <<EOF > merge |
|
1 | $ cat <<EOF > merge | |
2 | > import sys, os |
|
2 | > import sys, os | |
3 |
> print |
|
3 | > print("merging for", os.path.basename(sys.argv[1])) | |
4 | > EOF |
|
4 | > EOF | |
5 |
$ |
|
5 | $ HGMERGE="$PYTHON ../merge"; export HGMERGE | |
6 |
|
6 |
@@ -33,7 +33,7 b' Test interactions between mq and patch.e' | |||||
33 | > for line in file(sys.argv[1], 'rb'): |
|
33 | > for line in file(sys.argv[1], 'rb'): | |
34 | > line = line.replace('\r', '<CR>') |
|
34 | > line = line.replace('\r', '<CR>') | |
35 | > line = line.replace('\n', '<LF>') |
|
35 | > line = line.replace('\n', '<LF>') | |
36 |
> print |
|
36 | > print(line) | |
37 | > EOF |
|
37 | > EOF | |
38 |
|
38 | |||
39 | $ hg init repo |
|
39 | $ hg init repo |
@@ -39,7 +39,7 b' commit' | |||||
39 | push |
|
39 | push | |
40 |
|
40 | |||
41 | $ hg --traceback --cwd b push ../a 2>&1 | |
|
41 | $ hg --traceback --cwd b push ../a 2>&1 | | |
42 |
> $PYTHON -c 'import sys,re; print |
|
42 | > $PYTHON -c 'from __future__ import print_function ; import sys,re; print(re.sub("\n\t", " ", sys.stdin.read()), end="")' | |
43 | pushing to ../a |
|
43 | pushing to ../a | |
44 | searching for changes |
|
44 | searching for changes | |
45 | adding changesets |
|
45 | adding changesets | |
@@ -92,7 +92,7 b' unbundle with unrelated source' | |||||
92 | unbundle with correct source |
|
92 | unbundle with correct source | |
93 |
|
93 | |||
94 | $ hg --config notify.sources=unbundle --cwd a unbundle ../test.hg 2>&1 | |
|
94 | $ hg --config notify.sources=unbundle --cwd a unbundle ../test.hg 2>&1 | | |
95 |
> $PYTHON -c 'import sys,re; print |
|
95 | > $PYTHON -c 'from __future__ import print_function ; import sys,re; print(re.sub("\n\t", " ", sys.stdin.read()), end="")' | |
96 | adding changesets |
|
96 | adding changesets | |
97 | adding manifests |
|
97 | adding manifests | |
98 | adding file changes |
|
98 | adding file changes | |
@@ -167,7 +167,7 b' merge as a different user' | |||||
167 | push |
|
167 | push | |
168 |
|
168 | |||
169 | $ hg --traceback --cwd b --config notify.fromauthor=True push ../a 2>&1 | |
|
169 | $ hg --traceback --cwd b --config notify.fromauthor=True push ../a 2>&1 | | |
170 |
> $PYTHON -c 'import sys,re; print |
|
170 | > $PYTHON -c 'from __future__ import print_function ; import sys,re; print(re.sub("\n\t", " ", sys.stdin.read()), end="")' | |
171 | pushing to ../a |
|
171 | pushing to ../a | |
172 | searching for changes |
|
172 | searching for changes | |
173 | adding changesets |
|
173 | adding changesets |
General Comments 0
You need to be logged in to leave comments.
Login now