##// END OF EJS Templates
tests: use (esc) for all non-ASCII test output
Mads Kiilerich -
r12942:05fffd66 stable
parent child Browse files
Show More
@@ -24,7 +24,7 b' list bookmarks with color'
24
24
25 $ hg --config extensions.color= --config color.mode=ansi \
25 $ hg --config extensions.color= --config color.mode=ansi \
26 > bookmark --color=always
26 > bookmark --color=always
27  * X -1:000000000000
27 \x1b[0;32m * X -1:000000000000\x1b[0m (esc)
28
28
29 update to bookmark X
29 update to bookmark X
30
30
@@ -21,7 +21,7 b' list bookmarks with color'
21
21
22 $ hg --config extensions.color= --config color.mode=ansi \
22 $ hg --config extensions.color= --config color.mode=ansi \
23 > bookmarks --color=always
23 > bookmarks --color=always
24  * X -1:000000000000
24 \x1b[0;32m * X -1:000000000000\x1b[0m (esc)
25
25
26 $ echo a > a
26 $ echo a > a
27 $ hg add a
27 $ hg add a
@@ -34,13 +34,13 b' test branch selection options'
34 $ hg up 0
34 $ hg up 0
35 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
35 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
36 $ hg --encoding utf-8 branch Γ¦
36 $ hg --encoding utf-8 branch Γ¦
37 marked working directory as branch Γ¦
37 marked working directory as branch \xc3\xa6 (esc)
38 $ echo ae1 > foo
38 $ echo ae1 > foo
39 $ hg ci -d '0 0' -mae1
39 $ hg ci -d '0 0' -mae1
40 $ hg up 0
40 $ hg up 0
41 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
41 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
42 $ hg --encoding utf-8 branch -f Γ¦
42 $ hg --encoding utf-8 branch -f Γ¦
43 marked working directory as branch Γ¦
43 marked working directory as branch \xc3\xa6 (esc)
44 $ echo ae2 > foo
44 $ echo ae2 > foo
45 $ hg ci -d '0 0' -mae2
45 $ hg ci -d '0 0' -mae2
46 created new head
46 created new head
@@ -357,19 +357,19 b' default branch colors:'
357 $ hg up -C b
357 $ hg up -C b
358 2 files updated, 0 files merged, 3 files removed, 0 files unresolved
358 2 files updated, 0 files merged, 3 files removed, 0 files unresolved
359 $ hg branches --color=always
359 $ hg branches --color=always
360 b  13:6ac12926b8c3
360 \x1b[0;32mb\x1b[0m \x1b[0;33m 13:6ac12926b8c3\x1b[0m (esc)
361 a branch name much longer than the default justification used by branches 7:10ff5895aa57
361 \x1b[0;0ma branch name much longer than the default justification used by branches\x1b[0m \x1b[0;33m7:10ff5895aa57\x1b[0m (esc)
362 a  5:d8cbc61dbaa6 (inactive)
362 \x1b[0;0ma\x1b[0m \x1b[0;33m 5:d8cbc61dbaa6\x1b[0m (inactive) (esc)
363 default  0:19709c5a4e75 (inactive)
363 \x1b[0;0mdefault\x1b[0m \x1b[0;33m 0:19709c5a4e75\x1b[0m (inactive) (esc)
364
364
365 default closed branch color:
365 default closed branch color:
366
366
367 $ hg branches --color=always --closed
367 $ hg branches --color=always --closed
368 b  13:6ac12926b8c3
368 \x1b[0;32mb\x1b[0m \x1b[0;33m 13:6ac12926b8c3\x1b[0m (esc)
369 a branch name much longer than the default justification used by branches 7:10ff5895aa57
369 \x1b[0;0ma branch name much longer than the default justification used by branches\x1b[0m \x1b[0;33m7:10ff5895aa57\x1b[0m (esc)
370 c  14:717d2e6fabe1 (closed)
370 \x1b[0;30;1mc\x1b[0m \x1b[0;33m 14:717d2e6fabe1\x1b[0m (closed) (esc)
371 a  5:d8cbc61dbaa6 (inactive)
371 \x1b[0;0ma\x1b[0m \x1b[0;33m 5:d8cbc61dbaa6\x1b[0m (inactive) (esc)
372 default  0:19709c5a4e75 (inactive)
372 \x1b[0;0mdefault\x1b[0m \x1b[0;33m 0:19709c5a4e75\x1b[0m (inactive) (esc)
373
373
374 $ echo "[extensions]" >> $HGRCPATH
374 $ echo "[extensions]" >> $HGRCPATH
375 $ echo "color =" >> $HGRCPATH
375 $ echo "color =" >> $HGRCPATH
@@ -383,16 +383,16 b' default closed branch color:'
383 custom branch colors:
383 custom branch colors:
384
384
385 $ hg branches --color=always
385 $ hg branches --color=always
386 b  13:6ac12926b8c3
386 \x1b[0;31mb\x1b[0m \x1b[0;36m 13:6ac12926b8c3\x1b[0m (esc)
387 a branch name much longer than the default justification used by branches 7:10ff5895aa57
387 \x1b[0;32ma branch name much longer than the default justification used by branches\x1b[0m \x1b[0;36m7:10ff5895aa57\x1b[0m (esc)
388 a  5:d8cbc61dbaa6 (inactive)
388 \x1b[0;35ma\x1b[0m \x1b[0;36m 5:d8cbc61dbaa6\x1b[0m (inactive) (esc)
389 default  0:19709c5a4e75 (inactive)
389 \x1b[0;35mdefault\x1b[0m \x1b[0;36m 0:19709c5a4e75\x1b[0m (inactive) (esc)
390
390
391 custom closed branch color:
391 custom closed branch color:
392
392
393 $ hg branches --color=always --closed
393 $ hg branches --color=always --closed
394 b  13:6ac12926b8c3
394 \x1b[0;31mb\x1b[0m \x1b[0;36m 13:6ac12926b8c3\x1b[0m (esc)
395 a branch name much longer than the default justification used by branches 7:10ff5895aa57
395 \x1b[0;32ma branch name much longer than the default justification used by branches\x1b[0m \x1b[0;36m7:10ff5895aa57\x1b[0m (esc)
396 c  14:717d2e6fabe1 (closed)
396 \x1b[0;34mc\x1b[0m \x1b[0;36m 14:717d2e6fabe1\x1b[0m (closed) (esc)
397 a  5:d8cbc61dbaa6 (inactive)
397 \x1b[0;35ma\x1b[0m \x1b[0;36m 5:d8cbc61dbaa6\x1b[0m (inactive) (esc)
398 default  0:19709c5a4e75 (inactive)
398 \x1b[0;35mdefault\x1b[0m \x1b[0;36m 0:19709c5a4e75\x1b[0m (inactive) (esc)
@@ -102,9 +102,9 b' churn --diffstat with color'
102
102
103 $ hg --config extensions.color= churn --config color.mode=ansi \
103 $ hg --config extensions.color= churn --config color.mode=ansi \
104 > --diffstat --color=always
104 > --diffstat --color=always
105 user1 +3/-1 +++++++++++++++++++++++++++++++++++++++++--------------
105 user1 +3/-1 \x1b[0;32m+++++++++++++++++++++++++++++++++++++++++\x1b[0m\x1b[0;31m--------------\x1b[0m (esc)
106 user3 +3/-0 +++++++++++++++++++++++++++++++++++++++++
106 user3 +3/-0 \x1b[0;32m+++++++++++++++++++++++++++++++++++++++++\x1b[0m (esc)
107 user2 +2/-0 +++++++++++++++++++++++++++
107 user2 +2/-0 \x1b[0;32m+++++++++++++++++++++++++++\x1b[0m (esc)
108
108
109
109
110 changeset number churn
110 changeset number churn
@@ -82,7 +82,7 b' test utf-8 commit message and author'
82 darcs is encoding agnostic, so it takes whatever bytes it's given
82 darcs is encoding agnostic, so it takes whatever bytes it's given
83
83
84 $ darcs record -a -l -m 'p4: desc Γ±' -A 'author Γ±'
84 $ darcs record -a -l -m 'p4: desc Γ±' -A 'author Γ±'
85 Finished recording patch 'p4: desc Γ±'
85 Finished recording patch 'p4: desc \xc3\xb1' (esc)
86
86
87 Test latin-1 commit message
87 Test latin-1 commit message
88
88
@@ -90,7 +90,7 b' Test latin-1 commit message'
90 $ printf "p5: desc " > ../p5
90 $ printf "p5: desc " > ../p5
91 $ python -c 'print "".join([chr(i) for i in range(128, 256)])' >> ../p5
91 $ python -c 'print "".join([chr(i) for i in range(128, 256)])' >> ../p5
92 $ darcs record -a -l --logfile ../p5
92 $ darcs record -a -l --logfile ../p5
93 Finished recording patch 'p5: desc οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½οΏ½'
93 Finished recording patch 'p5: desc \x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff' (esc)
94
94
95 $ glog()
95 $ glog()
96 > {
96 > {
@@ -20,8 +20,8 b' Convert while testing all possible outpu'
20 found trunk at 'trunk'
20 found trunk at 'trunk'
21 found tags at 'tags'
21 found tags at 'tags'
22 found branches at 'branches'
22 found branches at 'branches'
23 found branch branchΓ© at 5
23 found branch branch\xc3\xa9 at 5 (esc)
24 found branch branchΓ©e at 6
24 found branch branch\xc3\xa9e at 6 (esc)
25 scanning: 1 revisions
25 scanning: 1 revisions
26 reparent to file://*/svn-repo/trunk (glob)
26 reparent to file://*/svn-repo/trunk (glob)
27 fetching revision log for "/trunk" from 4 to 0
27 fetching revision log for "/trunk" from 4 to 0
@@ -34,18 +34,18 b' Convert while testing all possible outpu'
34 '/tags' is not under '/trunk', ignoring
34 '/tags' is not under '/trunk', ignoring
35 scanning: 2 revisions
35 scanning: 2 revisions
36 reparent to file://*/svn-repo/branches/branch%C3%A9 (glob)
36 reparent to file://*/svn-repo/branches/branch%C3%A9 (glob)
37 fetching revision log for "/branches/branchΓ©" from 5 to 0
37 fetching revision log for "/branches/branch\xc3\xa9" from 5 to 0 (esc)
38 parsing revision 5 (1 changes)
38 parsing revision 5 (1 changes)
39 reparent to file://*/svn-repo (glob)
39 reparent to file://*/svn-repo (glob)
40 reparent to file://*/svn-repo/branches/branch%C3%A9 (glob)
40 reparent to file://*/svn-repo/branches/branch%C3%A9 (glob)
41 found parent of branch /branches/branchΓ© at 4: /trunk
41 found parent of branch /branches/branch\xc3\xa9 at 4: /trunk (esc)
42 scanning: 3 revisions
42 scanning: 3 revisions
43 reparent to file://*/svn-repo/branches/branch%C3%A9e (glob)
43 reparent to file://*/svn-repo/branches/branch%C3%A9e (glob)
44 fetching revision log for "/branches/branchΓ©e" from 6 to 0
44 fetching revision log for "/branches/branch\xc3\xa9e" from 6 to 0 (esc)
45 parsing revision 6 (1 changes)
45 parsing revision 6 (1 changes)
46 reparent to file://*/svn-repo (glob)
46 reparent to file://*/svn-repo (glob)
47 reparent to file://*/svn-repo/branches/branch%C3%A9e (glob)
47 reparent to file://*/svn-repo/branches/branch%C3%A9e (glob)
48 found parent of branch /branches/branchΓ©e at 5: /branches/branchΓ©
48 found parent of branch /branches/branch\xc3\xa9e at 5: /branches/branch\xc3\xa9 (esc)
49 scanning: 4 revisions
49 scanning: 4 revisions
50 scanning: 5 revisions
50 scanning: 5 revisions
51 scanning: 6 revisions
51 scanning: 6 revisions
@@ -58,63 +58,63 b' Convert while testing all possible outpu'
58 source: svn:afeb9c47-92ff-4c0c-9f72-e1f6eb8ac9af/trunk@2
58 source: svn:afeb9c47-92ff-4c0c-9f72-e1f6eb8ac9af/trunk@2
59 converting: 1/6 revisions (16.67%)
59 converting: 1/6 revisions (16.67%)
60 reparent to file://*/svn-repo/trunk (glob)
60 reparent to file://*/svn-repo/trunk (glob)
61 scanning paths: /trunk/Γ  0/3 (0.00%)
61 scanning paths: /trunk/\xc3\xa0 0/3 (0.00%) (esc)
62 scanning paths: /trunk/à/é 1/3 (33.33%)
62 scanning paths: /trunk/\xc3\xa0/e\xcc\x81 1/3 (33.33%) (esc)
63 scanning paths: /trunk/Γ© 2/3 (66.67%)
63 scanning paths: /trunk/\xc3\xa9 2/3 (66.67%) (esc)
64 à/é
64 \xc3\xa0/e\xcc\x81 (esc)
65 getting files: à/é 1/2 (50.00%)
65 getting files: \xc3\xa0/e\xcc\x81 1/2 (50.00%) (esc)
66 Γ©
66 \xc3\xa9 (esc)
67 getting files: Γ© 2/2 (100.00%)
67 getting files: \xc3\xa9 2/2 (100.00%) (esc)
68 3 copy files
68 3 copy files
69 source: svn:afeb9c47-92ff-4c0c-9f72-e1f6eb8ac9af/trunk@3
69 source: svn:afeb9c47-92ff-4c0c-9f72-e1f6eb8ac9af/trunk@3
70 converting: 2/6 revisions (33.33%)
70 converting: 2/6 revisions (33.33%)
71 scanning paths: /trunk/Γ  0/4 (0.00%)
71 scanning paths: /trunk/\xc3\xa0 0/4 (0.00%) (esc)
72 gone from -1
72 gone from -1
73 reparent to file://*/svn-repo (glob)
73 reparent to file://*/svn-repo (glob)
74 reparent to file://*/svn-repo/trunk (glob)
74 reparent to file://*/svn-repo/trunk (glob)
75 scanning paths: /trunk/Γ¨ 1/4 (25.00%)
75 scanning paths: /trunk/\xc3\xa8 1/4 (25.00%) (esc)
76 copied to Γ¨ from Γ©@2
76 copied to \xc3\xa8 from \xc3\xa9@2 (esc)
77 scanning paths: /trunk/Γ© 2/4 (50.00%)
77 scanning paths: /trunk/\xc3\xa9 2/4 (50.00%) (esc)
78 gone from -1
78 gone from -1
79 reparent to file://*/svn-repo (glob)
79 reparent to file://*/svn-repo (glob)
80 reparent to file://*/svn-repo/trunk (glob)
80 reparent to file://*/svn-repo/trunk (glob)
81 scanning paths: /trunk/ΓΉ 3/4 (75.00%)
81 scanning paths: /trunk/\xc3\xb9 3/4 (75.00%) (esc)
82 mark /trunk/ΓΉ came from Γ :2
82 mark /trunk/\xc3\xb9 came from \xc3\xa0:2 (esc)
83 à/é
83 \xc3\xa0/e\xcc\x81 (esc)
84 getting files: à/é 1/4 (25.00%)
84 getting files: \xc3\xa0/e\xcc\x81 1/4 (25.00%) (esc)
85 Γ¨
85 \xc3\xa8 (esc)
86 getting files: Γ¨ 2/4 (50.00%)
86 getting files: \xc3\xa8 2/4 (50.00%) (esc)
87 Γ¨: copy Γ©:6b67ccefd5ce6de77e7ead4f5292843a0255329f
87 \xc3\xa8: copy \xc3\xa9:6b67ccefd5ce6de77e7ead4f5292843a0255329f (esc)
88 Γ©
88 \xc3\xa9 (esc)
89 getting files: Γ© 3/4 (75.00%)
89 getting files: \xc3\xa9 3/4 (75.00%) (esc)
90 ù/é
90 \xc3\xb9/e\xcc\x81 (esc)
91 getting files: ù/é 4/4 (100.00%)
91 getting files: \xc3\xb9/e\xcc\x81 4/4 (100.00%) (esc)
92 ù/é: copy à/é:a9092a3d84a37b9993b5c73576f6de29b7ea50f6
92 \xc3\xb9/e\xcc\x81: copy \xc3\xa0/e\xcc\x81:a9092a3d84a37b9993b5c73576f6de29b7ea50f6 (esc)
93 2 remove files
93 2 remove files
94 source: svn:afeb9c47-92ff-4c0c-9f72-e1f6eb8ac9af/trunk@4
94 source: svn:afeb9c47-92ff-4c0c-9f72-e1f6eb8ac9af/trunk@4
95 converting: 3/6 revisions (50.00%)
95 converting: 3/6 revisions (50.00%)
96 scanning paths: /trunk/Γ¨ 0/2 (0.00%)
96 scanning paths: /trunk/\xc3\xa8 0/2 (0.00%) (esc)
97 gone from -1
97 gone from -1
98 reparent to file://*/svn-repo (glob)
98 reparent to file://*/svn-repo (glob)
99 reparent to file://*/svn-repo/trunk (glob)
99 reparent to file://*/svn-repo/trunk (glob)
100 scanning paths: /trunk/ΓΉ 1/2 (50.00%)
100 scanning paths: /trunk/\xc3\xb9 1/2 (50.00%) (esc)
101 gone from -1
101 gone from -1
102 reparent to file://*/svn-repo (glob)
102 reparent to file://*/svn-repo (glob)
103 reparent to file://*/svn-repo/trunk (glob)
103 reparent to file://*/svn-repo/trunk (glob)
104 Γ¨
104 \xc3\xa8 (esc)
105 getting files: Γ¨ 1/2 (50.00%)
105 getting files: \xc3\xa8 1/2 (50.00%) (esc)
106 ù/é
106 \xc3\xb9/e\xcc\x81 (esc)
107 getting files: ù/é 2/2 (100.00%)
107 getting files: \xc3\xb9/e\xcc\x81 2/2 (100.00%) (esc)
108 1 branch to branch?
108 1 branch to branch?
109 source: svn:afeb9c47-92ff-4c0c-9f72-e1f6eb8ac9af/branches/branch?@5
109 source: svn:afeb9c47-92ff-4c0c-9f72-e1f6eb8ac9af/branches/branch?@5
110 converting: 4/6 revisions (66.67%)
110 converting: 4/6 revisions (66.67%)
111 reparent to file://*/svn-repo/branches/branch%C3%A9 (glob)
111 reparent to file://*/svn-repo/branches/branch%C3%A9 (glob)
112 scanning paths: /branches/branchΓ© 0/1 (0.00%)
112 scanning paths: /branches/branch\xc3\xa9 0/1 (0.00%) (esc)
113 0 branch to branch?e
113 0 branch to branch?e
114 source: svn:afeb9c47-92ff-4c0c-9f72-e1f6eb8ac9af/branches/branch?e@6
114 source: svn:afeb9c47-92ff-4c0c-9f72-e1f6eb8ac9af/branches/branch?e@6
115 converting: 5/6 revisions (83.33%)
115 converting: 5/6 revisions (83.33%)
116 reparent to file://*/svn-repo/branches/branch%C3%A9e (glob)
116 reparent to file://*/svn-repo/branches/branch%C3%A9e (glob)
117 scanning paths: /branches/branchΓ©e 0/1 (0.00%)
117 scanning paths: /branches/branch\xc3\xa9e 0/1 (0.00%) (esc)
118 reparent to file://*/svn-repo (glob)
118 reparent to file://*/svn-repo (glob)
119 reparent to file://*/svn-repo/branches/branch%C3%A9e (glob)
119 reparent to file://*/svn-repo/branches/branch%C3%A9e (glob)
120 reparent to file://*/svn-repo (glob)
120 reparent to file://*/svn-repo (glob)
@@ -32,15 +32,15 b' Setup'
32 default context
32 default context
33
33
34 $ hg diff --nodates --color=always
34 $ hg diff --nodates --color=always
35 diff -r cf9f4ba66af2 a
35 \x1b[0;1mdiff -r cf9f4ba66af2 a\x1b[0m (esc)
36 --- a/a
36 \x1b[0;31;1m--- a/a\x1b[0m (esc)
37 +++ b/a
37 \x1b[0;32;1m+++ b/a\x1b[0m (esc)
38 @@ -2,7 +2,7 @@
38 \x1b[0;35m@@ -2,7 +2,7 @@\x1b[0m (esc)
39 c
39 c
40 a
40 a
41 a
41 a
42 -b
42 \x1b[0;31m-b\x1b[0m (esc)
43 +dd
43 \x1b[0;32m+dd\x1b[0m (esc)
44 a
44 a
45 a
45 a
46 c
46 c
@@ -48,21 +48,21 b' default context'
48 --unified=2
48 --unified=2
49
49
50 $ hg diff --nodates -U 2 --color=always
50 $ hg diff --nodates -U 2 --color=always
51 diff -r cf9f4ba66af2 a
51 \x1b[0;1mdiff -r cf9f4ba66af2 a\x1b[0m (esc)
52 --- a/a
52 \x1b[0;31;1m--- a/a\x1b[0m (esc)
53 +++ b/a
53 \x1b[0;32;1m+++ b/a\x1b[0m (esc)
54 @@ -3,5 +3,5 @@
54 \x1b[0;35m@@ -3,5 +3,5 @@\x1b[0m (esc)
55 a
55 a
56 a
56 a
57 -b
57 \x1b[0;31m-b\x1b[0m (esc)
58 +dd
58 \x1b[0;32m+dd\x1b[0m (esc)
59 a
59 a
60 a
60 a
61
61
62 diffstat
62 diffstat
63
63
64 $ hg diff --stat --color=always
64 $ hg diff --stat --color=always
65 a | 2 +-
65 a | 2 \x1b[0;32m+\x1b[0m\x1b[0;31m-\x1b[0m (esc)
66 1 files changed, 1 insertions(+), 1 deletions(-)
66 1 files changed, 1 insertions(+), 1 deletions(-)
67 $ echo "record=" >> $HGRCPATH
67 $ echo "record=" >> $HGRCPATH
68 $ echo "[ui]" >> $HGRCPATH
68 $ echo "[ui]" >> $HGRCPATH
@@ -77,17 +77,17 b' record'
77 > y
77 > y
78 > y
78 > y
79 > EOF
79 > EOF
80 diff --git a/a b/a
80 \x1b[0;1mdiff --git a/a b/a\x1b[0m (esc)
81 old mode 100644
81 \x1b[0;36;1mold mode 100644\x1b[0m (esc)
82 new mode 100755
82 \x1b[0;36;1mnew mode 100755\x1b[0m (esc)
83 1 hunks, 1 lines changed
83 1 hunks, 1 lines changed
84 examine changes to 'a'? [Ynsfdaq?]
84 examine changes to 'a'? [Ynsfdaq?]
85 @@ -2,7 +2,7 @@
85 \x1b[0;35m@@ -2,7 +2,7 @@\x1b[0m (esc)
86 c
86 c
87 a
87 a
88 a
88 a
89 -b
89 \x1b[0;31m-b\x1b[0m (esc)
90 +dd
90 \x1b[0;32m+dd\x1b[0m (esc)
91 a
91 a
92 a
92 a
93 c
93 c
@@ -105,17 +105,17 b' qrecord'
105 > y
105 > y
106 > y
106 > y
107 > EOF
107 > EOF
108 diff --git a/a b/a
108 \x1b[0;1mdiff --git a/a b/a\x1b[0m (esc)
109 old mode 100644
109 \x1b[0;36;1mold mode 100644\x1b[0m (esc)
110 new mode 100755
110 \x1b[0;36;1mnew mode 100755\x1b[0m (esc)
111 1 hunks, 1 lines changed
111 1 hunks, 1 lines changed
112 examine changes to 'a'? [Ynsfdaq?]
112 examine changes to 'a'? [Ynsfdaq?]
113 @@ -2,7 +2,7 @@
113 \x1b[0;35m@@ -2,7 +2,7 @@\x1b[0m (esc)
114 c
114 c
115 a
115 a
116 a
116 a
117 -b
117 \x1b[0;31m-b\x1b[0m (esc)
118 +dd
118 \x1b[0;32m+dd\x1b[0m (esc)
119 a
119 a
120 a
120 a
121 c
121 c
@@ -402,10 +402,9 b' Test \\r (carriage return) as used in "DO'
402 @@ -1,2 +1,3 @@
402 @@ -1,2 +1,3 @@
403 -hello world
403 -hello world
404 -goodbye world
404 -goodbye world
405 +hello world
405 +hello world\r (esc)
406 +
406 +\r (esc)
407 +goodbye
407 +goodbye\rworld (esc)
408 world
409 world
408
410
409 No completely blank lines to ignore:
411 No completely blank lines to ignore:
410
@@ -416,10 +415,9 b' No completely blank lines to ignore:'
416 +++ b/foo
415 @@ -1,2 +1,3 @@
417 @@ -1,2 +1,3 @@
416 -hello world
418 -hello world
417 -goodbye world
419 -goodbye world
418 +hello world\r (esc)
420 +hello world
419 +\r (esc)
421 +
420 +goodbye\rworld (esc)
422 +goodbye
423 world
421
424 world
422 Only new line noticed:
425
423
@@ -429,7 +427,7 b' Only new line noticed:'
429 diff -r 540c40a65b78 foo
427 +++ b/foo
430 --- a/foo
428 @@ -1,2 +1,3 @@
431 +++ b/foo
429 hello world
432 @@ -1,2 +1,3 @@
430 +\r (esc)
433 hello world
431 goodbye world
434 +
432
435 goodbye world
433 $ hg ndiff --ignore-all-space
@@ -438,7 +436,7 b' Only new line noticed:'
438 diff -r 540c40a65b78 foo
436 +++ b/foo
439 --- a/foo
437 @@ -1,2 +1,3 @@
440 +++ b/foo
438 hello world
441 @@ -1,2 +1,3 @@
439 +\r (esc)
442 hello world
440 goodbye world
443 +
441
444 goodbye world
442 New line not noticed when space change ignored:
@@ -13,6 +13,6 b''
13 +++ b/a Thu Jan 01 00:00:02 1970 +0000
13 +++ b/a Thu Jan 01 00:00:02 1970 +0000
14 @@ -1,2 +1,3 @@
14 @@ -1,2 +1,3 @@
15 confuse str.splitlines
15 confuse str.splitlines
16 embedded
16 embedded\rnewline (esc)
17 newline
17 +clean diff
18 +clean diff
18
@@ -30,7 +30,7 b' should fail with encoding error'
30 $ HGENCODING=ascii hg ci -l latin-1
30 $ HGENCODING=ascii hg ci -l latin-1
31 transaction abort!
31 transaction abort!
32 rollback completed
32 rollback completed
33 abort: decoding near ' encoded: οΏ½': 'ascii' codec can't decode byte 0xe9 in position 20: ordinal not in range(128)!
33 abort: decoding near ' encoded: \xe9': 'ascii' codec can't decode byte 0xe9 in position 20: ordinal not in range(128)! (esc)
34 [255]
34 [255]
35
35
36 these should work
36 these should work
@@ -41,7 +41,7 b' these should work'
41 $ HGENCODING=utf-8 hg ci -l utf-8
41 $ HGENCODING=utf-8 hg ci -l utf-8
42 $ HGENCODING=latin-1 hg tag `cat latin-1-tag`
42 $ HGENCODING=latin-1 hg tag `cat latin-1-tag`
43 $ HGENCODING=latin-1 hg branch `cat latin-1-tag`
43 $ HGENCODING=latin-1 hg branch `cat latin-1-tag`
44 marked working directory as branch οΏ½
44 marked working directory as branch \xe9 (esc)
45 $ HGENCODING=latin-1 hg ci -m 'latin1 branch'
45 $ HGENCODING=latin-1 hg ci -m 'latin1 branch'
46 $ rm .hg/branch
46 $ rm .hg/branch
47
47
@@ -86,7 +86,7 b' hg log (latin-1)'
86
86
87 $ hg --encoding latin-1 log
87 $ hg --encoding latin-1 log
88 changeset: 5:093c6077d1c8
88 changeset: 5:093c6077d1c8
89 branch: οΏ½
89 branch: \xe9 (esc)
90 tag: tip
90 tag: tip
91 user: test
91 user: test
92 date: Thu Jan 01 00:00:00 1970 +0000
92 date: Thu Jan 01 00:00:00 1970 +0000
@@ -95,35 +95,35 b' hg log (latin-1)'
95 changeset: 4:94db611b4196
95 changeset: 4:94db611b4196
96 user: test
96 user: test
97 date: Thu Jan 01 00:00:00 1970 +0000
97 date: Thu Jan 01 00:00:00 1970 +0000
98 summary: Added tag οΏ½ for changeset ca661e7520de
98 summary: Added tag \xe9 for changeset ca661e7520de (esc)
99
99
100 changeset: 3:ca661e7520de
100 changeset: 3:ca661e7520de
101 tag: οΏ½
101 tag: \xe9 (esc)
102 user: test
102 user: test
103 date: Thu Jan 01 00:00:00 1970 +0000
103 date: Thu Jan 01 00:00:00 1970 +0000
104 summary: utf-8 e' encoded: οΏ½
104 summary: utf-8 e' encoded: \xe9 (esc)
105
105
106 changeset: 2:650c6f3d55dd
106 changeset: 2:650c6f3d55dd
107 user: test
107 user: test
108 date: Thu Jan 01 00:00:00 1970 +0000
108 date: Thu Jan 01 00:00:00 1970 +0000
109 summary: latin-1 e' encoded: οΏ½
109 summary: latin-1 e' encoded: \xe9 (esc)
110
110
111 changeset: 1:0e5b7e3f9c4a
111 changeset: 1:0e5b7e3f9c4a
112 user: test
112 user: test
113 date: Mon Jan 12 13:46:40 1970 +0000
113 date: Mon Jan 12 13:46:40 1970 +0000
114 summary: koi8-r: οΏ½οΏ½οΏ½οΏ½οΏ½ = u'\u0440\u0442\u0443\u0442\u044c'
114 summary: koi8-r: \xd2\xd4\xd5\xd4\xd8 = u'\\u0440\\u0442\\u0443\\u0442\\u044c' (esc)
115
115
116 changeset: 0:1e78a93102a3
116 changeset: 0:1e78a93102a3
117 user: test
117 user: test
118 date: Mon Jan 12 13:46:40 1970 +0000
118 date: Mon Jan 12 13:46:40 1970 +0000
119 summary: latin-1 e': οΏ½ = u'\xe9'
119 summary: latin-1 e': \xe9 = u'\\xe9' (esc)
120
120
121
121
122 hg log (utf-8)
122 hg log (utf-8)
123
123
124 $ hg --encoding utf-8 log
124 $ hg --encoding utf-8 log
125 changeset: 5:093c6077d1c8
125 changeset: 5:093c6077d1c8
126 branch: Γ©
126 branch: \xc3\xa9 (esc)
127 tag: tip
127 tag: tip
128 user: test
128 user: test
129 date: Thu Jan 01 00:00:00 1970 +0000
129 date: Thu Jan 01 00:00:00 1970 +0000
@@ -132,28 +132,28 b' hg log (utf-8)'
132 changeset: 4:94db611b4196
132 changeset: 4:94db611b4196
133 user: test
133 user: test
134 date: Thu Jan 01 00:00:00 1970 +0000
134 date: Thu Jan 01 00:00:00 1970 +0000
135 summary: Added tag Γ© for changeset ca661e7520de
135 summary: Added tag \xc3\xa9 for changeset ca661e7520de (esc)
136
136
137 changeset: 3:ca661e7520de
137 changeset: 3:ca661e7520de
138 tag: Γ©
138 tag: \xc3\xa9 (esc)
139 user: test
139 user: test
140 date: Thu Jan 01 00:00:00 1970 +0000
140 date: Thu Jan 01 00:00:00 1970 +0000
141 summary: utf-8 e' encoded: Γ©
141 summary: utf-8 e' encoded: \xc3\xa9 (esc)
142
142
143 changeset: 2:650c6f3d55dd
143 changeset: 2:650c6f3d55dd
144 user: test
144 user: test
145 date: Thu Jan 01 00:00:00 1970 +0000
145 date: Thu Jan 01 00:00:00 1970 +0000
146 summary: latin-1 e' encoded: Γ©
146 summary: latin-1 e' encoded: \xc3\xa9 (esc)
147
147
148 changeset: 1:0e5b7e3f9c4a
148 changeset: 1:0e5b7e3f9c4a
149 user: test
149 user: test
150 date: Mon Jan 12 13:46:40 1970 +0000
150 date: Mon Jan 12 13:46:40 1970 +0000
151 summary: koi8-r: Γ’Γ”Γ•Γ”Γ˜ = u'\u0440\u0442\u0443\u0442\u044c'
151 summary: koi8-r: \xc3\x92\xc3\x94\xc3\x95\xc3\x94\xc3\x98 = u'\\u0440\\u0442\\u0443\\u0442\\u044c' (esc)
152
152
153 changeset: 0:1e78a93102a3
153 changeset: 0:1e78a93102a3
154 user: test
154 user: test
155 date: Mon Jan 12 13:46:40 1970 +0000
155 date: Mon Jan 12 13:46:40 1970 +0000
156 summary: latin-1 e': Γ© = u'\xe9'
156 summary: latin-1 e': \xc3\xa9 = u'\\xe9' (esc)
157
157
158
158
159 hg tags (ascii)
159 hg tags (ascii)
@@ -166,13 +166,13 b' hg tags (latin-1)'
166
166
167 $ HGENCODING=latin-1 hg tags
167 $ HGENCODING=latin-1 hg tags
168 tip 5:093c6077d1c8
168 tip 5:093c6077d1c8
169 οΏ½ 3:ca661e7520de
169 \xe9 3:ca661e7520de (esc)
170
170
171 hg tags (utf-8)
171 hg tags (utf-8)
172
172
173 $ HGENCODING=utf-8 hg tags
173 $ HGENCODING=utf-8 hg tags
174 tip 5:093c6077d1c8
174 tip 5:093c6077d1c8
175 Γ© 3:ca661e7520de
175 \xc3\xa9 3:ca661e7520de (esc)
176
176
177 hg branches (ascii)
177 hg branches (ascii)
178
178
@@ -183,13 +183,13 b' hg branches (ascii)'
183 hg branches (latin-1)
183 hg branches (latin-1)
184
184
185 $ HGENCODING=latin-1 hg branches
185 $ HGENCODING=latin-1 hg branches
186 οΏ½ 5:093c6077d1c8
186 \xe9 5:093c6077d1c8 (esc)
187 default 4:94db611b4196 (inactive)
187 default 4:94db611b4196 (inactive)
188
188
189 hg branches (utf-8)
189 hg branches (utf-8)
190
190
191 $ HGENCODING=utf-8 hg branches
191 $ HGENCODING=utf-8 hg branches
192 Γ© 5:093c6077d1c8
192 \xc3\xa9 5:093c6077d1c8 (esc)
193 default 4:94db611b4196 (inactive)
193 default 4:94db611b4196 (inactive)
194 $ echo '[ui]' >> .hg/hgrc
194 $ echo '[ui]' >> .hg/hgrc
195 $ echo 'fallbackencoding = koi8-r' >> .hg/hgrc
195 $ echo 'fallbackencoding = koi8-r' >> .hg/hgrc
@@ -198,7 +198,7 b' hg log (utf-8)'
198
198
199 $ HGENCODING=utf-8 hg log
199 $ HGENCODING=utf-8 hg log
200 changeset: 5:093c6077d1c8
200 changeset: 5:093c6077d1c8
201 branch: Γ©
201 branch: \xc3\xa9 (esc)
202 tag: tip
202 tag: tip
203 user: test
203 user: test
204 date: Thu Jan 01 00:00:00 1970 +0000
204 date: Thu Jan 01 00:00:00 1970 +0000
@@ -207,28 +207,28 b' hg log (utf-8)'
207 changeset: 4:94db611b4196
207 changeset: 4:94db611b4196
208 user: test
208 user: test
209 date: Thu Jan 01 00:00:00 1970 +0000
209 date: Thu Jan 01 00:00:00 1970 +0000
210 summary: Added tag Γ© for changeset ca661e7520de
210 summary: Added tag \xc3\xa9 for changeset ca661e7520de (esc)
211
211
212 changeset: 3:ca661e7520de
212 changeset: 3:ca661e7520de
213 tag: Γ©
213 tag: \xc3\xa9 (esc)
214 user: test
214 user: test
215 date: Thu Jan 01 00:00:00 1970 +0000
215 date: Thu Jan 01 00:00:00 1970 +0000
216 summary: utf-8 e' encoded: Γ©
216 summary: utf-8 e' encoded: \xc3\xa9 (esc)
217
217
218 changeset: 2:650c6f3d55dd
218 changeset: 2:650c6f3d55dd
219 user: test
219 user: test
220 date: Thu Jan 01 00:00:00 1970 +0000
220 date: Thu Jan 01 00:00:00 1970 +0000
221 summary: latin-1 e' encoded: Γ©
221 summary: latin-1 e' encoded: \xc3\xa9 (esc)
222
222
223 changeset: 1:0e5b7e3f9c4a
223 changeset: 1:0e5b7e3f9c4a
224 user: test
224 user: test
225 date: Mon Jan 12 13:46:40 1970 +0000
225 date: Mon Jan 12 13:46:40 1970 +0000
226 summary: koi8-r: Ρ€Ρ‚ΡƒΡ‚ΡŒ = u'\u0440\u0442\u0443\u0442\u044c'
226 summary: koi8-r: \xd1\x80\xd1\x82\xd1\x83\xd1\x82\xd1\x8c = u'\\u0440\\u0442\\u0443\\u0442\\u044c' (esc)
227
227
228 changeset: 0:1e78a93102a3
228 changeset: 0:1e78a93102a3
229 user: test
229 user: test
230 date: Mon Jan 12 13:46:40 1970 +0000
230 date: Mon Jan 12 13:46:40 1970 +0000
231 summary: latin-1 e': И = u'\xe9'
231 summary: latin-1 e': \xd0\x98 = u'\\xe9' (esc)
232
232
233
233
234 hg log (dolphin)
234 hg log (dolphin)
@@ -237,7 +237,7 b' hg log (dolphin)'
237 abort: unknown encoding: dolphin, please check your locale settings
237 abort: unknown encoding: dolphin, please check your locale settings
238 [255]
238 [255]
239 $ HGENCODING=ascii hg branch `cat latin-1-tag`
239 $ HGENCODING=ascii hg branch `cat latin-1-tag`
240 abort: decoding near 'οΏ½': 'ascii' codec can't decode byte 0xe9 in position 0: ordinal not in range(128)!
240 abort: decoding near '\xe9': 'ascii' codec can't decode byte 0xe9 in position 0: ordinal not in range(128)! (esc)
241 [255]
241 [255]
242 $ cp latin-1-tag .hg/branch
242 $ cp latin-1-tag .hg/branch
243 $ HGENCODING=latin-1 hg ci -m 'should fail'
243 $ HGENCODING=latin-1 hg ci -m 'should fail'
@@ -9,11 +9,11 b' test issue352'
9 $ A=`printf 'he\rllo'`
9 $ A=`printf 'he\rllo'`
10 $ echo foo > "$A"
10 $ echo foo > "$A"
11 $ hg add
11 $ hg add
12 adding he
12 adding he\rllo (esc)
13 llo
13 abort: '\n' and '\r' disallowed in filenames: 'he\rllo'
14 abort: '\n' and '\r' disallowed in filenames: 'he\rllo'
14 [255]
15 [255]
15 $ hg ci -A -m m
16 $ hg ci -A -m m
16 adding he\rllo (esc)
17 adding he
17 abort: '\n' and '\r' disallowed in filenames: 'he\rllo'
18 llo
18 [255]
19 abort: '\n' and '\r' disallowed in filenames: 'he\rllo'
19 $ rm "$A"
@@ -31,7 +31,7 b' test issue352'
31 o
31 [255]
32 abort: '\n' and '\r' disallowed in filenames: 'hell\no'
32 $ echo foo > "$A"
33 [255]
33 $ hg debugwalk
34 $ echo foo > "$A"
34 f he\rllo he\rllo (esc)
35 $ hg debugwalk
35 f hell
36 f he
36 o hell
37 llo he
37 o
@@ -51,7 +51,7 b' test issue2039'
51 $ echo "[extensions]" >> $HGRCPATH
51 $ touch "$A"
52 $ echo "color=" >> $HGRCPATH
52 $ touch "$B"
53 $ A=`printf 'foo\nbar'`
53 $ hg status --color=always
54 $ B=`printf 'foo\nbar.baz'`
54 \x1b[0;35;1;4m? foo\x1b[0m (esc)
55 $ touch "$A"
55 \x1b[0;35;1;4mbar\x1b[0m (esc)
56 $ touch "$B"
56 \x1b[0;35;1;4m? foo\x1b[0m (esc)
57 $ hg status --color=always
57 \x1b[0;35;1;4mbar.baz\x1b[0m (esc)
@@ -33,9 +33,9 b' simple with color'
33
33
34 $ hg --config extensions.color= grep --config color.mode=ansi \
34 $ hg --config extensions.color= grep --config color.mode=ansi \
35 > --color=always port port
35 > --color=always port port
36 port:4:export
36 port:4:ex\x1b[0;31;1mport\x1b[0m (esc)
37 port:4:vaportight
37 port:4:va\x1b[0;31;1mport\x1b[0might (esc)
38 port:4:import/export
38 port:4:im\x1b[0;31;1mport\x1b[0m/export (esc)
39
39
40 all
40 all
41
41
@@ -5,7 +5,7 b''
5 > }
5 > }
6 $ hg init a
6 $ hg init a
7 $ hg --encoding utf-8 -R a branch Γ¦
7 $ hg --encoding utf-8 -R a branch Γ¦
8 marked working directory as branch Γ¦
8 marked working directory as branch \xc3\xa6 (esc)
9 $ echo foo > a/foo
9 $ echo foo > a/foo
10 $ hg -R a ci -Am foo
10 $ hg -R a ci -Am foo
11 adding foo
11 adding foo
@@ -17,11 +17,11 b''
17 adding manifests
17 adding manifests
18 adding file changes
18 adding file changes
19 added 1 changesets with 1 changes to 1 files
19 added 1 changesets with 1 changes to 1 files
20 updating to branch Γ¦
20 updating to branch \xc3\xa6 (esc)
21 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
21 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
22 $ hg --encoding utf-8 -R b log
22 $ hg --encoding utf-8 -R b log
23 changeset: 0:867c11ce77b8
23 changeset: 0:867c11ce77b8
24 branch: Γ¦
24 branch: \xc3\xa6 (esc)
25 tag: tip
25 tag: tip
26 user: test
26 user: test
27 date: Thu Jan 01 00:00:00 1970 +0000
27 date: Thu Jan 01 00:00:00 1970 +0000
@@ -38,14 +38,14 b''
38 remote: added 1 changesets with 1 changes to 1 files
38 remote: added 1 changesets with 1 changes to 1 files
39 $ hg -R a --encoding utf-8 log
39 $ hg -R a --encoding utf-8 log
40 changeset: 1:58e7c90d67cb
40 changeset: 1:58e7c90d67cb
41 branch: Γ¦
41 branch: \xc3\xa6 (esc)
42 tag: tip
42 tag: tip
43 user: test
43 user: test
44 date: Thu Jan 01 00:00:00 1970 +0000
44 date: Thu Jan 01 00:00:00 1970 +0000
45 summary: bar
45 summary: bar
46
46
47 changeset: 0:867c11ce77b8
47 changeset: 0:867c11ce77b8
48 branch: Γ¦
48 branch: \xc3\xa6 (esc)
49 user: test
49 user: test
50 date: Thu Jan 01 00:00:00 1970 +0000
50 date: Thu Jan 01 00:00:00 1970 +0000
51 summary: foo
51 summary: foo
@@ -523,31 +523,31 b' log -p -l2 --color=always'
523
523
524 $ hg --config extensions.color= --config color.mode=ansi \
524 $ hg --config extensions.color= --config color.mode=ansi \
525 > log -p -l2 --color=always
525 > log -p -l2 --color=always
526 changeset: 6:2404bbcab562
526 \x1b[0;33mchangeset: 6:2404bbcab562\x1b[0m (esc)
527 tag: tip
527 tag: tip
528 user: test
528 user: test
529 date: Thu Jan 01 00:00:01 1970 +0000
529 date: Thu Jan 01 00:00:01 1970 +0000
530 summary: b1.1
530 summary: b1.1
531
531
532 diff -r 302e9dd6890d -r 2404bbcab562 b1
532 \x1b[0;1mdiff -r 302e9dd6890d -r 2404bbcab562 b1\x1b[0m (esc)
533 --- a/b1 Thu Jan 01 00:00:01 1970 +0000
533 \x1b[0;31;1m--- a/b1 Thu Jan 01 00:00:01 1970 +0000\x1b[0m (esc)
534 +++ b/b1 Thu Jan 01 00:00:01 1970 +0000
534 \x1b[0;32;1m+++ b/b1 Thu Jan 01 00:00:01 1970 +0000\x1b[0m (esc)
535 @@ -1,1 +1,2 @@
535 \x1b[0;35m@@ -1,1 +1,2 @@\x1b[0m (esc)
536 b1
536 b1
537 +postm
537 \x1b[0;32m+postm\x1b[0m (esc)
538
538
539 changeset: 5:302e9dd6890d
539 \x1b[0;33mchangeset: 5:302e9dd6890d\x1b[0m (esc)
540 parent: 3:e62f78d544b4
540 parent: 3:e62f78d544b4
541 parent: 4:ddb82e70d1a1
541 parent: 4:ddb82e70d1a1
542 user: test
542 user: test
543 date: Thu Jan 01 00:00:01 1970 +0000
543 date: Thu Jan 01 00:00:01 1970 +0000
544 summary: m12
544 summary: m12
545
545
546 diff -r e62f78d544b4 -r 302e9dd6890d b2
546 \x1b[0;1mdiff -r e62f78d544b4 -r 302e9dd6890d b2\x1b[0m (esc)
547 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
547 \x1b[0;31;1m--- /dev/null Thu Jan 01 00:00:00 1970 +0000\x1b[0m (esc)
548 +++ b/b2 Thu Jan 01 00:00:01 1970 +0000
548 \x1b[0;32;1m+++ b/b2 Thu Jan 01 00:00:01 1970 +0000\x1b[0m (esc)
549 @@ -0,0 +1,1 @@
549 \x1b[0;35m@@ -0,0 +1,1 @@\x1b[0m (esc)
550 +b2
550 \x1b[0;32m+b2\x1b[0m (esc)
551
551
552
552
553
553
@@ -218,9 +218,9 b' list patches and guards with color'
218
218
219 $ hg --config extensions.color= qguard --config color.mode=ansi \
219 $ hg --config extensions.color= qguard --config color.mode=ansi \
220 > -l --color=always
220 > -l --color=always
221 a.patch: +1 +2 -3
221 \x1b[0;30;1ma.patch\x1b[0m: \x1b[0;33m+1\x1b[0m \x1b[0;33m+2\x1b[0m \x1b[0;31m-3\x1b[0m (esc)
222 b.patch: +2
222 \x1b[0;34;1;4mb.patch\x1b[0m: \x1b[0;33m+2\x1b[0m (esc)
223 c.patch: unguarded
223 \x1b[0;30;1mc.patch\x1b[0m: \x1b[0;32munguarded\x1b[0m (esc)
224
224
225 should pop b.patch
225 should pop b.patch
226
226
@@ -310,10 +310,10 b' and d.patch as Unapplied'
310 qseries again, but with color
310 qseries again, but with color
311
311
312 $ hg --config extensions.color= qseries -v --color=always
312 $ hg --config extensions.color= qseries -v --color=always
313 0 G new.patch
313 0 G \x1b[0;30;1mnew.patch\x1b[0m (esc)
314 1 G b.patch
314 1 G \x1b[0;30;1mb.patch\x1b[0m (esc)
315 2 A c.patch
315 2 A \x1b[0;34;1;4mc.patch\x1b[0m (esc)
316 3 U d.patch
316 3 U \x1b[0;30;1md.patch\x1b[0m (esc)
317
317
318 $ hg qguard d.patch +2
318 $ hg qguard d.patch +2
319
319
@@ -433,4 +433,4 b' the guards file was not ignored in the p'
433 hg qseries -m with color
433 hg qseries -m with color
434
434
435 $ hg --config extensions.color= qseries -m --color=always
435 $ hg --config extensions.color= qseries -m --color=always
436 b.patch
436 \x1b[0;31;1mb.patch\x1b[0m (esc)
@@ -41,7 +41,7 b' test qpush on empty series'
41 transaction abort!
41 transaction abort!
42 rollback completed
42 rollback completed
43 cleaning up working directory...done
43 cleaning up working directory...done
44 abort: decoding near 'οΏ½': 'ascii' codec can't decode byte 0xe9 in position 0: ordinal not in range(128)!
44 abort: decoding near '\xe9': 'ascii' codec can't decode byte 0xe9 in position 0: ordinal not in range(128)! (esc)
45 [255]
45 [255]
46 $ hg parents
46 $ hg parents
47 changeset: 0:bbd179dfa0a7
47 changeset: 0:bbd179dfa0a7
@@ -178,11 +178,11 b' add an untracked file'
178 status --mq with color (issue2096)
178 status --mq with color (issue2096)
179
179
180 $ hg status --mq --config extensions.color= --color=always
180 $ hg status --mq --config extensions.color= --color=always
181 A .hgignore
181 \x1b[0;32;1mA .hgignore\x1b[0m (esc)
182 A A
182 \x1b[0;32;1mA A\x1b[0m (esc)
183 A B
183 \x1b[0;32;1mA B\x1b[0m (esc)
184 A series
184 \x1b[0;32;1mA series\x1b[0m (esc)
185 ? flaf
185 \x1b[0;35;1;4m? flaf\x1b[0m (esc)
186
186
187 try the --mq option on a command provided by an extension
187 try the --mq option on a command provided by an extension
188
188
@@ -1925,7 +1925,7 b' test outgoing:'
1925 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1925 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1926 +++ b/utf Thu Jan 01 00:00:04 1970 +0000
1926 +++ b/utf Thu Jan 01 00:00:04 1970 +0000
1927 @@ -0,0 +1,1 @@
1927 @@ -0,0 +1,1 @@
1928 +hΓΆmma!
1928 +h\xc3\xb6mma! (esc)
1929
1929
1930 Displaying [PATCH 3 of 8] charset=utf-8; content-transfer-encoding: quoted-printable ...
1930 Displaying [PATCH 3 of 8] charset=utf-8; content-transfer-encoding: quoted-printable ...
1931 Content-Type: text/plain; charset="us-ascii"
1931 Content-Type: text/plain; charset="us-ascii"
@@ -1996,7 +1996,7 b' test outgoing:'
1996 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1996 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1997 +++ b/isolatin Thu Jan 01 00:00:05 1970 +0000
1997 +++ b/isolatin Thu Jan 01 00:00:05 1970 +0000
1998 @@ -0,0 +1,1 @@
1998 @@ -0,0 +1,1 @@
1999 +hοΏ½mma!
1999 +h\xf6mma! (esc)
2000
2000
2001 Displaying [PATCH 5 of 8] Added tag zero, zero.foo for changeset 8580ff50825a ...
2001 Displaying [PATCH 5 of 8] Added tag zero, zero.foo for changeset 8580ff50825a ...
2002 Content-Type: text/plain; charset="us-ascii"
2002 Content-Type: text/plain; charset="us-ascii"
@@ -51,7 +51,7 b' test with delay=0, refresh=0'
51 loop [ ] 0/3
51 loop [ ] 0/3
52 loop [=====================> ] 1/3
52 loop [=====================> ] 1/3
53 loop [============================================> ] 2/3
53 loop [============================================> ] 2/3
54
54 \r (esc)
55
55
56 test refresh is taken in account
56 test refresh is taken in account
57
57
@@ -64,7 +64,7 b' test format options 1'
64
64
65 0/2 loop lo
65 0/2 loop lo
66 1/2 loop lo
66 1/2 loop lo
67
67 \r (esc)
68
68
69 test format options 2
69 test format options 2
70
70
@@ -72,7 +72,7 b' test format options 2'
72
72
73 0/2 p.0 [ ]
73 0/2 p.0 [ ]
74 1/2 p.1 [=================================> ]
74 1/2 p.1 [=================================> ]
75
75 \r (esc)
76
76
77 test format options and indeterminate progress
77 test format options and indeterminate progress
78
78
@@ -80,7 +80,7 b' test format options and indeterminate pr'
80
80
81 0 loop.0 [ <=> ]
81 0 loop.0 [ <=> ]
82 1 loop.1 [ <=> ]
82 1 loop.1 [ <=> ]
83
83 \r (esc)
84
84
85 make sure things don't fall over if count > total
85 make sure things don't fall over if count > total
86
86
@@ -92,7 +92,7 b" make sure things don't fall over if coun"
92 loop [==================================================> ] 3/4
92 loop [==================================================> ] 3/4
93 loop [===================================================================>] 4/4
93 loop [===================================================================>] 4/4
94 loop [ <=> ] 5/4
94 loop [ <=> ] 5/4
95
95 \r (esc)
96
96
97 test immediate progress completion
97 test immediate progress completion
98
98
@@ -66,7 +66,7 b''
66 $ hg co 4
66 $ hg co 4
67 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
67 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
68 $ hg branch Γ©
68 $ hg branch Γ©
69 marked working directory as branch Γ©
69 marked working directory as branch \xc3\xa9 (esc)
70 $ hg ci -Aqm9
70 $ hg ci -Aqm9
71
71
72 $ hg tag -r6 1.0
72 $ hg tag -r6 1.0
@@ -11,100 +11,100 b''
11 hg status in repo root:
11 hg status in repo root:
12
12
13 $ hg status --color=always
13 $ hg status --color=always
14 ? a/1/in_a_1
14 \x1b[0;35;1;4m? a/1/in_a_1\x1b[0m (esc)
15 ? a/in_a
15 \x1b[0;35;1;4m? a/in_a\x1b[0m (esc)
16 ? b/1/in_b_1
16 \x1b[0;35;1;4m? b/1/in_b_1\x1b[0m (esc)
17 ? b/2/in_b_2
17 \x1b[0;35;1;4m? b/2/in_b_2\x1b[0m (esc)
18 ? b/in_b
18 \x1b[0;35;1;4m? b/in_b\x1b[0m (esc)
19 ? in_root
19 \x1b[0;35;1;4m? in_root\x1b[0m (esc)
20
20
21 hg status . in repo root:
21 hg status . in repo root:
22
22
23 $ hg status --color=always .
23 $ hg status --color=always .
24 ? a/1/in_a_1
24 \x1b[0;35;1;4m? a/1/in_a_1\x1b[0m (esc)
25 ? a/in_a
25 \x1b[0;35;1;4m? a/in_a\x1b[0m (esc)
26 ? b/1/in_b_1
26 \x1b[0;35;1;4m? b/1/in_b_1\x1b[0m (esc)
27 ? b/2/in_b_2
27 \x1b[0;35;1;4m? b/2/in_b_2\x1b[0m (esc)
28 ? b/in_b
28 \x1b[0;35;1;4m? b/in_b\x1b[0m (esc)
29 ? in_root
29 \x1b[0;35;1;4m? in_root\x1b[0m (esc)
30
30
31 $ hg status --color=always --cwd a
31 $ hg status --color=always --cwd a
32 ? a/1/in_a_1
32 \x1b[0;35;1;4m? a/1/in_a_1\x1b[0m (esc)
33 ? a/in_a
33 \x1b[0;35;1;4m? a/in_a\x1b[0m (esc)
34 ? b/1/in_b_1
34 \x1b[0;35;1;4m? b/1/in_b_1\x1b[0m (esc)
35 ? b/2/in_b_2
35 \x1b[0;35;1;4m? b/2/in_b_2\x1b[0m (esc)
36 ? b/in_b
36 \x1b[0;35;1;4m? b/in_b\x1b[0m (esc)
37 ? in_root
37 \x1b[0;35;1;4m? in_root\x1b[0m (esc)
38 $ hg status --color=always --cwd a .
38 $ hg status --color=always --cwd a .
39 ? 1/in_a_1
39 \x1b[0;35;1;4m? 1/in_a_1\x1b[0m (esc)
40 ? in_a
40 \x1b[0;35;1;4m? in_a\x1b[0m (esc)
41 $ hg status --color=always --cwd a ..
41 $ hg status --color=always --cwd a ..
42 ? 1/in_a_1
42 \x1b[0;35;1;4m? 1/in_a_1\x1b[0m (esc)
43 ? in_a
43 \x1b[0;35;1;4m? in_a\x1b[0m (esc)
44 ? ../b/1/in_b_1
44 \x1b[0;35;1;4m? ../b/1/in_b_1\x1b[0m (esc)
45 ? ../b/2/in_b_2
45 \x1b[0;35;1;4m? ../b/2/in_b_2\x1b[0m (esc)
46 ? ../b/in_b
46 \x1b[0;35;1;4m? ../b/in_b\x1b[0m (esc)
47 ? ../in_root
47 \x1b[0;35;1;4m? ../in_root\x1b[0m (esc)
48
48
49 $ hg status --color=always --cwd b
49 $ hg status --color=always --cwd b
50 ? a/1/in_a_1
50 \x1b[0;35;1;4m? a/1/in_a_1\x1b[0m (esc)
51 ? a/in_a
51 \x1b[0;35;1;4m? a/in_a\x1b[0m (esc)
52 ? b/1/in_b_1
52 \x1b[0;35;1;4m? b/1/in_b_1\x1b[0m (esc)
53 ? b/2/in_b_2
53 \x1b[0;35;1;4m? b/2/in_b_2\x1b[0m (esc)
54 ? b/in_b
54 \x1b[0;35;1;4m? b/in_b\x1b[0m (esc)
55 ? in_root
55 \x1b[0;35;1;4m? in_root\x1b[0m (esc)
56 $ hg status --color=always --cwd b .
56 $ hg status --color=always --cwd b .
57 ? 1/in_b_1
57 \x1b[0;35;1;4m? 1/in_b_1\x1b[0m (esc)
58 ? 2/in_b_2
58 \x1b[0;35;1;4m? 2/in_b_2\x1b[0m (esc)
59 ? in_b
59 \x1b[0;35;1;4m? in_b\x1b[0m (esc)
60 $ hg status --color=always --cwd b ..
60 $ hg status --color=always --cwd b ..
61 ? ../a/1/in_a_1
61 \x1b[0;35;1;4m? ../a/1/in_a_1\x1b[0m (esc)
62 ? ../a/in_a
62 \x1b[0;35;1;4m? ../a/in_a\x1b[0m (esc)
63 ? 1/in_b_1
63 \x1b[0;35;1;4m? 1/in_b_1\x1b[0m (esc)
64 ? 2/in_b_2
64 \x1b[0;35;1;4m? 2/in_b_2\x1b[0m (esc)
65 ? in_b
65 \x1b[0;35;1;4m? in_b\x1b[0m (esc)
66 ? ../in_root
66 \x1b[0;35;1;4m? ../in_root\x1b[0m (esc)
67
67
68 $ hg status --color=always --cwd a/1
68 $ hg status --color=always --cwd a/1
69 ? a/1/in_a_1
69 \x1b[0;35;1;4m? a/1/in_a_1\x1b[0m (esc)
70 ? a/in_a
70 \x1b[0;35;1;4m? a/in_a\x1b[0m (esc)
71 ? b/1/in_b_1
71 \x1b[0;35;1;4m? b/1/in_b_1\x1b[0m (esc)
72 ? b/2/in_b_2
72 \x1b[0;35;1;4m? b/2/in_b_2\x1b[0m (esc)
73 ? b/in_b
73 \x1b[0;35;1;4m? b/in_b\x1b[0m (esc)
74 ? in_root
74 \x1b[0;35;1;4m? in_root\x1b[0m (esc)
75 $ hg status --color=always --cwd a/1 .
75 $ hg status --color=always --cwd a/1 .
76 ? in_a_1
76 \x1b[0;35;1;4m? in_a_1\x1b[0m (esc)
77 $ hg status --color=always --cwd a/1 ..
77 $ hg status --color=always --cwd a/1 ..
78 ? in_a_1
78 \x1b[0;35;1;4m? in_a_1\x1b[0m (esc)
79 ? ../in_a
79 \x1b[0;35;1;4m? ../in_a\x1b[0m (esc)
80
80
81 $ hg status --color=always --cwd b/1
81 $ hg status --color=always --cwd b/1
82 ? a/1/in_a_1
82 \x1b[0;35;1;4m? a/1/in_a_1\x1b[0m (esc)
83 ? a/in_a
83 \x1b[0;35;1;4m? a/in_a\x1b[0m (esc)
84 ? b/1/in_b_1
84 \x1b[0;35;1;4m? b/1/in_b_1\x1b[0m (esc)
85 ? b/2/in_b_2
85 \x1b[0;35;1;4m? b/2/in_b_2\x1b[0m (esc)
86 ? b/in_b
86 \x1b[0;35;1;4m? b/in_b\x1b[0m (esc)
87 ? in_root
87 \x1b[0;35;1;4m? in_root\x1b[0m (esc)
88 $ hg status --color=always --cwd b/1 .
88 $ hg status --color=always --cwd b/1 .
89 ? in_b_1
89 \x1b[0;35;1;4m? in_b_1\x1b[0m (esc)
90 $ hg status --color=always --cwd b/1 ..
90 $ hg status --color=always --cwd b/1 ..
91 ? in_b_1
91 \x1b[0;35;1;4m? in_b_1\x1b[0m (esc)
92 ? ../2/in_b_2
92 \x1b[0;35;1;4m? ../2/in_b_2\x1b[0m (esc)
93 ? ../in_b
93 \x1b[0;35;1;4m? ../in_b\x1b[0m (esc)
94
94
95 $ hg status --color=always --cwd b/2
95 $ hg status --color=always --cwd b/2
96 ? a/1/in_a_1
96 \x1b[0;35;1;4m? a/1/in_a_1\x1b[0m (esc)
97 ? a/in_a
97 \x1b[0;35;1;4m? a/in_a\x1b[0m (esc)
98 ? b/1/in_b_1
98 \x1b[0;35;1;4m? b/1/in_b_1\x1b[0m (esc)
99 ? b/2/in_b_2
99 \x1b[0;35;1;4m? b/2/in_b_2\x1b[0m (esc)
100 ? b/in_b
100 \x1b[0;35;1;4m? b/in_b\x1b[0m (esc)
101 ? in_root
101 \x1b[0;35;1;4m? in_root\x1b[0m (esc)
102 $ hg status --color=always --cwd b/2 .
102 $ hg status --color=always --cwd b/2 .
103 ? in_b_2
103 \x1b[0;35;1;4m? in_b_2\x1b[0m (esc)
104 $ hg status --color=always --cwd b/2 ..
104 $ hg status --color=always --cwd b/2 ..
105 ? ../1/in_b_1
105 \x1b[0;35;1;4m? ../1/in_b_1\x1b[0m (esc)
106 ? in_b_2
106 \x1b[0;35;1;4m? in_b_2\x1b[0m (esc)
107 ? ../in_b
107 \x1b[0;35;1;4m? ../in_b\x1b[0m (esc)
108 $ cd ..
108 $ cd ..
109
109
110 $ hg init repo2
110 $ hg init repo2
@@ -124,44 +124,44 b' hg status . in repo root:'
124 hg status:
124 hg status:
125
125
126 $ hg status --color=always
126 $ hg status --color=always
127 A added
127 \x1b[0;32;1mA added\x1b[0m (esc)
128 R removed
128 \x1b[0;31;1mR removed\x1b[0m (esc)
129 ! deleted
129 \x1b[0;36;1;4m! deleted\x1b[0m (esc)
130 ? unknown
130 \x1b[0;35;1;4m? unknown\x1b[0m (esc)
131
131
132 hg status modified added removed deleted unknown never-existed ignored:
132 hg status modified added removed deleted unknown never-existed ignored:
133
133
134 $ hg status --color=always modified added removed deleted unknown never-existed ignored
134 $ hg status --color=always modified added removed deleted unknown never-existed ignored
135 never-existed: No such file or directory
135 never-existed: No such file or directory
136 A added
136 \x1b[0;32;1mA added\x1b[0m (esc)
137 R removed
137 \x1b[0;31;1mR removed\x1b[0m (esc)
138 ! deleted
138 \x1b[0;36;1;4m! deleted\x1b[0m (esc)
139 ? unknown
139 \x1b[0;35;1;4m? unknown\x1b[0m (esc)
140
140
141 $ hg copy modified copied
141 $ hg copy modified copied
142
142
143 hg status -C:
143 hg status -C:
144
144
145 $ hg status --color=always -C
145 $ hg status --color=always -C
146 A added
146 \x1b[0;32;1mA added\x1b[0m (esc)
147 A copied
147 \x1b[0;32;1mA copied\x1b[0m (esc)
148  modified
148 \x1b[0;0m modified\x1b[0m (esc)
149 R removed
149 \x1b[0;31;1mR removed\x1b[0m (esc)
150 ! deleted
150 \x1b[0;36;1;4m! deleted\x1b[0m (esc)
151 ? unknown
151 \x1b[0;35;1;4m? unknown\x1b[0m (esc)
152
152
153 hg status -A:
153 hg status -A:
154
154
155 $ hg status --color=always -A
155 $ hg status --color=always -A
156 A added
156 \x1b[0;32;1mA added\x1b[0m (esc)
157 A copied
157 \x1b[0;32;1mA copied\x1b[0m (esc)
158  modified
158 \x1b[0;0m modified\x1b[0m (esc)
159 R removed
159 \x1b[0;31;1mR removed\x1b[0m (esc)
160 ! deleted
160 \x1b[0;36;1;4m! deleted\x1b[0m (esc)
161 ? unknown
161 \x1b[0;35;1;4m? unknown\x1b[0m (esc)
162 I ignored
162 \x1b[0;30;1mI ignored\x1b[0m (esc)
163 C .hgignore
163 \x1b[0;0mC .hgignore\x1b[0m (esc)
164 C modified
164 \x1b[0;0mC modified\x1b[0m (esc)
165
165
166
166
167 $ echo "^ignoreddir$" > .hgignore
167 $ echo "^ignoreddir$" > .hgignore
@@ -175,7 +175,7 b' hg status ignoreddir/file:'
175 hg status -i ignoreddir/file:
175 hg status -i ignoreddir/file:
176
176
177 $ hg status --color=always -i ignoreddir/file
177 $ hg status --color=always -i ignoreddir/file
178 I ignoreddir/file
178 \x1b[0;30;1mI ignoreddir/file\x1b[0m (esc)
179 $ cd ..
179 $ cd ..
180
180
181 check 'status -q' and some combinations
181 check 'status -q' and some combinations
@@ -201,11 +201,11 b' test unknown color'
201 $ hg --config color.status.modified=periwinkle status --color=always
201 $ hg --config color.status.modified=periwinkle status --color=always
202 ignoring unknown color/effect 'periwinkle' (configured in color.status.modified)
202 ignoring unknown color/effect 'periwinkle' (configured in color.status.modified)
203 M modified
203 M modified
204 A added
204 \x1b[0;32;1mA added\x1b[0m (esc)
205 A copied
205 \x1b[0;32;1mA copied\x1b[0m (esc)
206 R removed
206 \x1b[0;31;1mR removed\x1b[0m (esc)
207 ! deleted
207 \x1b[0;36;1;4m! deleted\x1b[0m (esc)
208 ? unknown
208 \x1b[0;35;1;4m? unknown\x1b[0m (esc)
209
209
210 Run status with 2 different flags.
210 Run status with 2 different flags.
211 Check if result is the same or different.
211 Check if result is the same or different.
@@ -275,5 +275,5 b" test 'resolve -l'"
275 hg resolve with one unresolved, one resolved:
275 hg resolve with one unresolved, one resolved:
276
276
277 $ hg resolve --color=always -l
277 $ hg resolve --color=always -l
278 U a
278 \x1b[0;31;1mU a\x1b[0m (esc)
279 R b
279 \x1b[0;32;1mR b\x1b[0m (esc)
General Comments 0
You need to be logged in to leave comments. Login now