Show More
@@ -448,10 +448,7 b' class treemanifest(object):' | |||||
448 | # Using _lazymanifest here is a little slower than plain old dicts |
|
448 | # Using _lazymanifest here is a little slower than plain old dicts | |
449 | self._files = {} |
|
449 | self._files = {} | |
450 | self._flags = {} |
|
450 | self._flags = {} | |
451 |
|
|
451 | self.parse(text) | |
452 | self[f] = n |
|
|||
453 | if fl: |
|
|||
454 | self.setflag(f, fl) |
|
|||
455 |
|
452 | |||
456 | def _subpath(self, path): |
|
453 | def _subpath(self, path): | |
457 | return self._dir + path |
|
454 | return self._dir + path | |
@@ -740,6 +737,12 b' class treemanifest(object):' | |||||
740 | _diff(self, m2) |
|
737 | _diff(self, m2) | |
741 | return result |
|
738 | return result | |
742 |
|
739 | |||
|
740 | def parse(self, text): | |||
|
741 | for f, n, fl in _parse(text): | |||
|
742 | self[f] = n | |||
|
743 | if fl: | |||
|
744 | self.setflag(f, fl) | |||
|
745 | ||||
743 | def text(self, usemanifestv2=False): |
|
746 | def text(self, usemanifestv2=False): | |
744 | """Get the full data of this manifest as a bytestring.""" |
|
747 | """Get the full data of this manifest as a bytestring.""" | |
745 | flags = self.flags |
|
748 | flags = self.flags |
General Comments 0
You need to be logged in to leave comments.
Login now