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