Patchwork [14,of,24] identity: report bookmarks sorted

login
register
mail settings
Submitter Mads Kiilerich
Date Dec. 16, 2012, 10:34 p.m.
Message ID <8578a1efbb0d9e246b4b.1355697249@localhost6.localdomain6>
Download mbox | patch
Permalink /patch/138/
State Accepted
Commit fdf2f5730bd44f82aa0a3a0e7ac098a62e5831b9
Headers show

Comments

Mads Kiilerich - Dec. 16, 2012, 10:34 p.m.
# HG changeset patch
# User Mads Kiilerich <mads at kiilerich.com>
# Date 1355277062 -3600
# Node ID 8578a1efbb0d9e246b4b816ffde2afc8cf2ccd8c
# Parent  2449e26fec892aa8ab334db4f5424011e4081f91
identity: report bookmarks sorted
Bryan O'Sullivan - Dec. 17, 2012, 9 p.m.
On Sun, Dec 16, 2012 at 2:34 PM, Mads Kiilerich <mads at kiilerich.com> wrote:

> identity: report bookmarks sorted
>

Looks good, thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20121217/408bffed/attachment.html>

Patch

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