Show More
@@ -463,6 +463,10 b' def update(repo, parents, node):' | |||||
463 | return bool(bmchanges) |
|
463 | return bool(bmchanges) | |
464 |
|
464 | |||
465 |
|
465 | |||
|
466 | def isdivergent(b): | |||
|
467 | return b'@' in b and not b.endswith(b'@') | |||
|
468 | ||||
|
469 | ||||
466 | def listbinbookmarks(repo): |
|
470 | def listbinbookmarks(repo): | |
467 | # We may try to list bookmarks on a repo type that does not |
|
471 | # We may try to list bookmarks on a repo type that does not | |
468 | # support it (e.g., statichttprepository). |
|
472 | # support it (e.g., statichttprepository). | |
@@ -471,7 +475,7 b' def listbinbookmarks(repo):' | |||||
471 | hasnode = repo.changelog.hasnode |
|
475 | hasnode = repo.changelog.hasnode | |
472 | for k, v in pycompat.iteritems(marks): |
|
476 | for k, v in pycompat.iteritems(marks): | |
473 | # don't expose local divergent bookmarks |
|
477 | # don't expose local divergent bookmarks | |
474 |
if hasnode(v) and |
|
478 | if hasnode(v) and not isdivergent(k): | |
475 | yield k, v |
|
479 | yield k, v | |
476 |
|
480 | |||
477 |
|
481 |
General Comments 0
You need to be logged in to leave comments.
Login now