##// END OF EJS Templates
filelog: don't crash on invalid copy metadata (issue5748)...
Gregory Szorc -
r38091:6614cac5 4.6 stable
parent child Browse files
Show More
@@ -135,7 +135,9 b' class filelog(object):'
135 135 return False
136 136 t = self.revision(node)
137 137 m = revlog.parsemeta(t)[0]
138 if m and "copy" in m:
138 # copy and copyrev occur in pairs. In rare cases due to bugs,
139 # one can occur without the other.
140 if m and "copy" in m and "copyrev" in m:
139 141 return (m["copy"], revlog.bin(m["copyrev"]))
140 142 return False
141 143
General Comments 0
You need to be logged in to leave comments. Login now