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