equal
deleted
inserted
replaced
31 |
31 |
32 configtable = {} |
32 configtable = {} |
33 configitem = registrar.configitem(configtable) |
33 configitem = registrar.configitem(configtable) |
34 # git.log-index-cache-miss: internal knob for testing |
34 # git.log-index-cache-miss: internal knob for testing |
35 configitem( |
35 configitem( |
36 b"git", b"log-index-cache-miss", default=False, |
36 b"git", |
|
37 b"log-index-cache-miss", |
|
38 default=False, |
37 ) |
39 ) |
38 |
40 |
39 # TODO: extract an interface for this in core |
41 # TODO: extract an interface for this in core |
40 class gitstore(object): # store.basicstore): |
42 class gitstore(object): # store.basicstore): |
41 def __init__(self, path, vfstype): |
43 def __init__(self, path, vfstype): |
222 return self.active |
224 return self.active |
223 raise error.RepoLookupError(_(b"no active bookmark")) |
225 raise error.RepoLookupError(_(b"no active bookmark")) |
224 return bname |
226 return bname |
225 |
227 |
226 def applychanges(self, repo, tr, changes): |
228 def applychanges(self, repo, tr, changes): |
227 """Apply a list of changes to bookmarks |
229 """Apply a list of changes to bookmarks""" |
228 """ |
|
229 # TODO: this should respect transactions, but that's going to |
230 # TODO: this should respect transactions, but that's going to |
230 # require enlarging the gitbmstore to know how to do in-memory |
231 # require enlarging the gitbmstore to know how to do in-memory |
231 # temporary writes and read those back prior to transaction |
232 # temporary writes and read those back prior to transaction |
232 # finalization. |
233 # finalization. |
233 for name, node in changes: |
234 for name, node in changes: |