##// END OF EJS Templates
sidedatacopies: directly fetch copies information from sidedata...
marmoute -
r43551:675c776f default
parent child Browse files
Show More
@@ -190,12 +190,25 b' def _revinfogetter(repo):'
190 cl = repo.changelog
190 cl = repo.changelog
191 parents = cl.parentrevs
191 parents = cl.parentrevs
192
192
193 def revinfo(rev):
193 if repo.filecopiesmode == b'changeset-sidedata':
194 p1, p2 = parents(rev)
194 changelogrevision = cl.changelogrevision
195 ctx = repo[rev]
195
196 p1copies, p2copies = ctx._copies
196 def revinfo(rev):
197 removed = ctx.filesremoved()
197 p1, p2 = parents(rev)
198 return p1, p2, p1copies, p2copies, removed
198 c = changelogrevision(rev)
199 p1copies = c.p1copies
200 p2copies = c.p2copies
201 removed = c.filesremoved
202 return p1, p2, p1copies, p2copies, removed
203
204 else:
205
206 def revinfo(rev):
207 p1, p2 = parents(rev)
208 ctx = repo[rev]
209 p1copies, p2copies = ctx._copies
210 removed = ctx.filesremoved()
211 return p1, p2, p1copies, p2copies, removed
199
212
200 return revinfo
213 return revinfo
201
214
General Comments 0
You need to be logged in to leave comments. Login now