Show More
@@ -296,16 +296,9 b' def listbinbookmarks(repo):' | |||
|
296 | 296 | yield k, v |
|
297 | 297 | |
|
298 | 298 | def listbookmarks(repo): |
|
299 | # We may try to list bookmarks on a repo type that does not | |
|
300 | # support it (e.g., statichttprepository). | |
|
301 | marks = getattr(repo, '_bookmarks', {}) | |
|
302 | ||
|
303 | 299 | d = {} |
|
304 | hasnode = repo.changelog.hasnode | |
|
305 | for k, v in marks.iteritems(): | |
|
306 | # don't expose local divergent bookmarks | |
|
307 | if hasnode(v) and ('@' not in k or k.endswith('@')): | |
|
308 | d[k] = hex(v) | |
|
300 | for book, node in listbinbookmarks(repo): | |
|
301 | d[book] = hex(node) | |
|
309 | 302 | return d |
|
310 | 303 | |
|
311 | 304 | def pushbookmark(repo, key, old, new): |
General Comments 0
You need to be logged in to leave comments.
Login now