Show More
@@ -54,7 +54,7 class filelog(revlog): | |||||
54 | mt = "" |
|
54 | mt = "" | |
55 | if meta: |
|
55 | if meta: | |
56 | mt = [ "%s: %s\n" % (k, v) for k,v in meta.items() ] |
|
56 | mt = [ "%s: %s\n" % (k, v) for k,v in meta.items() ] | |
57 |
text = "\1\n" |
|
57 | text = "\1\n%s\1\n%s" % ("".join(mt), text) | |
58 | return self.addrevision(text, transaction, link, p1, p2) |
|
58 | return self.addrevision(text, transaction, link, p1, p2) | |
59 |
|
59 | |||
60 | def renamed(self, node): |
|
60 | def renamed(self, node): |
@@ -32,8 +32,8 def unidiff(a, ad, b, bd, fn, r=None, te | |||||
32 | l = list(difflib.unified_diff(a, b, "a/" + fn, "b/" + fn)) |
|
32 | l = list(difflib.unified_diff(a, b, "a/" + fn, "b/" + fn)) | |
33 | if not l: return "" |
|
33 | if not l: return "" | |
34 | # difflib uses a space, rather than a tab |
|
34 | # difflib uses a space, rather than a tab | |
35 |
l[0] = l[0][:-2] |
|
35 | l[0] = "%s\t%s\n" % (l[0][:-2], ad) | |
36 |
l[1] = l[1][:-2] |
|
36 | l[1] = "%s\t%s\n" % (l[1][:-2], bd) | |
37 |
|
37 | |||
38 | for ln in xrange(len(l)): |
|
38 | for ln in xrange(len(l)): | |
39 | if l[ln][-1] != '\n': |
|
39 | if l[ln][-1] != '\n': |
General Comments 0
You need to be logged in to leave comments.
Login now