Show More
@@ -370,6 +370,11 b' def reposetup(ui, repo):' | |||||
370 | repo.__class__ = bookmark_repo |
|
370 | repo.__class__ = bookmark_repo | |
371 |
|
371 | |||
372 | def listbookmarks(repo): |
|
372 | def listbookmarks(repo): | |
|
373 | # We may try to list bookmarks on a repo type that does not | |||
|
374 | # support it (e.g., statichttprepository). | |||
|
375 | if not hasattr(repo, '_bookmarks'): | |||
|
376 | return {} | |||
|
377 | ||||
373 | d = {} |
|
378 | d = {} | |
374 | for k, v in repo._bookmarks.iteritems(): |
|
379 | for k, v in repo._bookmarks.iteritems(): | |
375 | d[k] = hex(v) |
|
380 | d[k] = hex(v) |
General Comments 0
You need to be logged in to leave comments.
Login now