Show More
@@ -436,16 +436,9 b' def _wraprepo(ui, repo):' | |||||
436 | return includes, excludes, profiles |
|
436 | return includes, excludes, profiles | |
437 |
|
437 | |||
438 | def getrawprofile(self, profile, changeid): |
|
438 | def getrawprofile(self, profile, changeid): | |
439 | try: |
|
439 | # TODO add some kind of cache here because this incurs a manifest | |
440 | simplecache = extensions.find('simplecache') |
|
440 | # resolve and can be slow. | |
441 | node = self[changeid].hex() |
|
441 | return self.filectx(profile, changeid=changeid).data() | |
442 | def func(): |
|
|||
443 | return self.filectx(profile, changeid=changeid).data() |
|
|||
444 | key = 'sparseprofile:%s:%s' % (profile.replace('/', '__'), node) |
|
|||
445 | return simplecache.memoize(func, key, |
|
|||
446 | simplecache.stringserializer, self.ui) |
|
|||
447 | except KeyError: |
|
|||
448 | return self.filectx(profile, changeid=changeid).data() |
|
|||
449 |
|
442 | |||
450 | def sparsechecksum(self, filepath): |
|
443 | def sparsechecksum(self, filepath): | |
451 | fh = open(filepath) |
|
444 | fh = open(filepath) |
General Comments 0
You need to be logged in to leave comments.
Login now