diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -3632,7 +3632,7 @@ def identify(ui, repo, source=None, rev= bms = [bm for bm, bmr in peer.listkeys('bookmarks').iteritems() if bmr == hexremoterev] - return bms + return sorted(bms) if bookmarks: output.extend(getbms())