Show More
@@ -284,6 +284,17 def update(repo, parents, node): | |||||
284 | lockmod.release(tr, lock) |
|
284 | lockmod.release(tr, lock) | |
285 | return update |
|
285 | return update | |
286 |
|
286 | |||
|
287 | def listbinbookmarks(repo): | |||
|
288 | # We may try to list bookmarks on a repo type that does not | |||
|
289 | # support it (e.g., statichttprepository). | |||
|
290 | marks = getattr(repo, '_bookmarks', {}) | |||
|
291 | ||||
|
292 | hasnode = repo.changelog.hasnode | |||
|
293 | for k, v in marks.iteritems(): | |||
|
294 | # don't expose local divergent bookmarks | |||
|
295 | if hasnode(v) and ('@' not in k or k.endswith('@')): | |||
|
296 | yield k, v | |||
|
297 | ||||
287 | def listbookmarks(repo): |
|
298 | def listbookmarks(repo): | |
288 | # We may try to list bookmarks on a repo type that does not |
|
299 | # We may try to list bookmarks on a repo type that does not | |
289 | # support it (e.g., statichttprepository). |
|
300 | # support it (e.g., statichttprepository). |
General Comments 0
You need to be logged in to leave comments.
Login now