Show More
@@ -153,6 +153,7 b' test-extdiff.t' | |||
|
153 | 153 | test-extra-filelog-entry.t |
|
154 | 154 | test-filebranch.t |
|
155 | 155 | test-filecache.py |
|
156 | test-filelog.py | |
|
156 | 157 | test-fileset-generated.t |
|
157 | 158 | test-fix-topology.t |
|
158 | 159 | test-flags.t |
@@ -14,21 +14,21 b' from mercurial import (' | |||
|
14 | 14 | ) |
|
15 | 15 | |
|
16 | 16 | myui = uimod.ui.load() |
|
17 | repo = hg.repository(myui, path='.', create=True) | |
|
17 | repo = hg.repository(myui, path=b'.', create=True) | |
|
18 | 18 | |
|
19 | fl = repo.file('foobar') | |
|
19 | fl = repo.file(b'foobar') | |
|
20 | 20 | |
|
21 | 21 | def addrev(text, renamed=False): |
|
22 | 22 | if renamed: |
|
23 | 23 | # data doesn't matter. Just make sure filelog.renamed() returns True |
|
24 | meta = {'copyrev': hex(nullid), 'copy': 'bar'} | |
|
24 | meta = {b'copyrev': hex(nullid), b'copy': b'bar'} | |
|
25 | 25 | else: |
|
26 | 26 | meta = {} |
|
27 | 27 | |
|
28 | 28 | lock = t = None |
|
29 | 29 | try: |
|
30 | 30 | lock = repo.lock() |
|
31 | t = repo.transaction('commit') | |
|
31 | t = repo.transaction(b'commit') | |
|
32 | 32 | node = fl.add(text, meta, t, 0, nullid, nullid) |
|
33 | 33 | return node |
|
34 | 34 | finally: |
@@ -40,8 +40,8 b' def addrev(text, renamed=False):' | |||
|
40 | 40 | def error(text): |
|
41 | 41 | print('ERROR: ' + text) |
|
42 | 42 | |
|
43 | textwith = '\1\nfoo' | |
|
44 | without = 'foo' | |
|
43 | textwith = b'\1\nfoo' | |
|
44 | without = b'foo' | |
|
45 | 45 | |
|
46 | 46 | node = addrev(textwith) |
|
47 | 47 | if not textwith == fl.read(node): |
General Comments 0
You need to be logged in to leave comments.
Login now