Show More
@@ -222,7 +222,7 b' class eolfile(object):' | |||
|
222 | 222 | data = ctx[f].data() |
|
223 | 223 | if (target == "to-lf" and "\r\n" in data |
|
224 | 224 | or target == "to-crlf" and singlelf.search(data)): |
|
225 |
failed.append((f, target, |
|
|
225 | failed.append((f, target, bytes(ctx))) | |
|
226 | 226 | break |
|
227 | 227 | return failed |
|
228 | 228 |
@@ -363,7 +363,7 b' class journalstorage(object):' | |||
|
363 | 363 | # empty file, write version first |
|
364 | 364 | f.write(str(storageversion) + '\0') |
|
365 | 365 | f.seek(0, os.SEEK_END) |
|
366 |
f.write( |
|
|
366 | f.write(bytes(entry) + '\0') | |
|
367 | 367 | |
|
368 | 368 | def filtered(self, namespace=None, name=None): |
|
369 | 369 | """Yield all journal entries with the given namespace or name |
@@ -780,7 +780,7 b' class queue(object):' | |||
|
780 | 780 | |
|
781 | 781 | diffopts = self.patchopts(diffopts, patch) |
|
782 | 782 | patchf = self.opener(patch, "w") |
|
783 |
comments = |
|
|
783 | comments = bytes(ph) | |
|
784 | 784 | if comments: |
|
785 | 785 | patchf.write(comments) |
|
786 | 786 | self.printdiff(repo, diffopts, head, n, fp=patchf) |
General Comments 0
You need to be logged in to leave comments.
Login now