Show More
@@ -164,14 +164,6 def reposetup(ui, repo): | |||
|
164 | 164 | return |
|
165 | 165 | |
|
166 | 166 | class bookmark_repo(repo.__class__): |
|
167 | @util.propertycache | |
|
168 | def _bookmarks(self): | |
|
169 | return bookmarks.read(self) | |
|
170 | ||
|
171 | @util.propertycache | |
|
172 | def _bookmarkcurrent(self): | |
|
173 | return bookmarks.readcurrent(self) | |
|
174 | ||
|
175 | 167 | def rollback(self, dryrun=False): |
|
176 | 168 | if os.path.exists(self.join('undo.bookmarks')): |
|
177 | 169 | if not dryrun: |
@@ -8,7 +8,7 | |||
|
8 | 8 | from node import bin, hex, nullid, nullrev, short |
|
9 | 9 | from i18n import _ |
|
10 | 10 | import repo, changegroup, subrepo, discovery, pushkey |
|
11 | import changelog, dirstate, filelog, manifest, context | |
|
11 | import changelog, dirstate, filelog, manifest, context, bookmarks | |
|
12 | 12 | import lock, transaction, store, encoding |
|
13 | 13 | import util, extensions, hook, error |
|
14 | 14 | import match as matchmod |
@@ -161,6 +161,13 class localrepository(repo.repository): | |||
|
161 | 161 | parts.pop() |
|
162 | 162 | return False |
|
163 | 163 | |
|
164 | @util.propertycache | |
|
165 | def _bookmarks(self): | |
|
166 | return bookmarks.read(self) | |
|
167 | ||
|
168 | @util.propertycache | |
|
169 | def _bookmarkcurrent(self): | |
|
170 | return bookmarks.readcurrent(self) | |
|
164 | 171 | |
|
165 | 172 | @propertycache |
|
166 | 173 | def changelog(self): |
General Comments 0
You need to be logged in to leave comments.
Login now