Please enable JavaScript to use RhodeCode Enterprise
##// END OF EJS Templates
Alexis S. L. Carvalho
- Sun, 10 Dec 2006 22:35:28
Show More
mercurial/commands.py
0
+3
-3
@@
-256,9
+256,9
b' def branch(ui, repo, label=None):'
256
256
"""
257
257
258
258
if label is not None :
259
repo . opener ( "branch" , "w" ) . write ( label )
259
repo . opener ( "branch" , "w" ) . write ( util . fromlocal ( label ) + ' \n ' )
260
260
else :
261
b = repo . workingctx () . branch ()
261
b = util . tolocal ( repo . workingctx () . branch ())
262
262
if b :
263
263
ui . write ( " %s \n " % b )
264
264
@@
-1433,7
+1433,7
b' def identify(ui, repo):'
1433
1433
1434
1434
if not ui . quiet :
1435
1435
1436
branch = repo . workingctx () . branch ()
1436
branch = util . tolocal ( repo . workingctx () . branch ())
1437
1437
if branch :
1438
1438
output . append ( "( %s )" % branch )
1439
1439
mercurial/localrepo.py
0
+5
-1
@@
-683,7
+683,11
b' class localrepository(repo.repository):'
683
683
m2 = self . manifest . read ( c2 [ 0 ])
684
684
685
685
if use_dirstate :
686
branchname = util.fromlocal(self . workingctx () . branch ())
686
branchname = self . workingctx () . branch ()
687
try :
688
branchname = branchname . decode ( 'UTF-8' ) . encode ( 'UTF-8' )
689
except UnicodeDecodeError :
690
raise util . Abort ( _ ( 'branch name not in UTF-8!' ))
687
691
else :
688
692
branchname = ""
689
693
mercurial/merge.py
0
0
-1
@@
-489,7
+489,6
b' def update(repo, node, branchmerge, forc'
489
489
repo . dirstate . setparents ( fp1 , fp2 )
490
490
repo . hook ( 'update' , parent1 = xp1 , parent2 = xp2 , error = stats [ 3 ])
491
491
if not branchmerge :
492
b = util . tolocal ( p2 . branch ())
493
492
repo . opener ( "branch" , "w" ) . write ( p2 . branch () + " \n " )
494
493
495
494
return stats
tests/test-encoding
0
+4
-1
@@
-25,7
+25,7
b' echo "utf-8" > a'
25
25
HGENCODING=utf-8 hg ci -l utf-8 -d "1000000 0"
26
26
27
27
HGENCODING=latin-1 hg tag -d "1000000 0" `cat latin-1-tag`
28
cp latin-1-tag .hg/branch
28
HGENCODING=latin-1 hg branch `cat latin-1-tag`
29
29
HGENCODING=latin-1 hg ci -d "1000000 0" -m 'latin1 branch'
30
30
rm .hg/branch
31
31
@@
-55,4
+55,7
b' HGENCODING=utf-8 hg log'
55
55
56
56
HGENCODING=dolphin hg log
57
57
58
HGENCODING=ascii hg branch `cat latin-1-tag`
59
cp latin-1-tag .hg/branch
60
HGENCODING=latin-1 hg ci -d "1000000 0" -m 'should fail'
58
61
exit 0
tests/test-encoding.out
0
+2
0
@@
-165,3
+165,5
b' date: Mon Jan 12 13:46:40 1970 +0'
165
165
summary: latin-1 e': И = u'\xe9'
166
166
167
167
abort: unknown encoding: dolphin, please check your locale settings
168
abort: decoding near '�': 'ascii' codec can't decode byte 0xe9 in position 0: ordinal not in range(128)!
169
abort: branch name not in UTF-8!
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
g 0-9
Goto bookmarked items from 0-9
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository access permissions settings
t s
Toggle sidebar on some pages