Show More
@@ -79,10 +79,6 b' class localrepository(repo.repository):' | |||
|
79 | 79 | except IOError: |
|
80 | 80 | pass |
|
81 | 81 | |
|
82 | self.changelog = changelog.changelog(self.sopener) | |
|
83 | self.sopener.defversion = self.changelog.version | |
|
84 | self.manifest = manifest.manifest(self.sopener) | |
|
85 | ||
|
86 | 82 | fallback = self.ui.config('ui', 'fallbackencoding') |
|
87 | 83 | if fallback: |
|
88 | 84 | util._fallbackencoding = fallback |
@@ -93,7 +89,20 b' class localrepository(repo.repository):' | |||
|
93 | 89 | self.filterpats = {} |
|
94 | 90 | self.transhandle = None |
|
95 | 91 | |
|
92 | def __getattr__(self, name): | |
|
93 | if name == 'changelog': | |
|
94 | self.changelog = changelog.changelog(self.sopener) | |
|
95 | self.sopener.defversion = self.changelog.version | |
|
96 | return self.changelog | |
|
97 | if name == 'manifest': | |
|
98 | self.changelog | |
|
99 | self.manifest = manifest.manifest(self.sopener) | |
|
100 | return self.manifest | |
|
101 | if name == 'dirstate': | |
|
96 | 102 | self.dirstate = dirstate.dirstate(self.opener, self.ui, self.root) |
|
103 | return self.dirstate | |
|
104 | else: | |
|
105 | raise AttributeError, name | |
|
97 | 106 | |
|
98 | 107 | def url(self): |
|
99 | 108 | return 'file:' + self.root |
General Comments 0
You need to be logged in to leave comments.
Login now