# HG changeset patch # User Mads Kiilerich # Date 2012-12-12 01:51:02 # Node ID fdf2f5730bd44f82aa0a3a0e7ac098a62e5831b9 # Parent 4148414da12048cd97e1c73e926bb465bda7cfa2 identity: report bookmarks sorted 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())