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