Show More
@@ -9,7 +9,7 import revlog | |||
|
9 | 9 | import re |
|
10 | 10 | |
|
11 | 11 | _mdre = re.compile('\1\n') |
|
12 |
def |
|
|
12 | def parsemeta(text): | |
|
13 | 13 | """return (metadatadict, keylist, metadatasize)""" |
|
14 | 14 | # text can be buffer, so we can't use .startswith or .index |
|
15 | 15 | if text[:2] != '\1\n': |
@@ -50,7 +50,7 class filelog(revlog.revlog): | |||
|
50 | 50 | if self.parents(node)[0] != revlog.nullid: |
|
51 | 51 | return False |
|
52 | 52 | t = self.revision(node) |
|
53 |
m = |
|
|
53 | m = parsemeta(t)[0] | |
|
54 | 54 | if m and "copy" in m: |
|
55 | 55 | return (m["copy"], revlog.bin(m["copyrev"])) |
|
56 | 56 | return False |
General Comments 0
You need to be logged in to leave comments.
Login now