changeset 819:826296785e8b

git_handler.filter_refs: sort returned refs if none are provided Again, no direct impact in stock hg-git, but super useful for extensions.
author Siddharth Agarwal <sid0@fb.com>
date Fri, 31 Oct 2014 10:46:56 -0700
parents 2c5e41d670b5
children 0d6d2fcc62b6
files hggit/git_handler.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hggit/git_handler.py	Fri Oct 31 10:40:58 2014 -0700
+++ b/hggit/git_handler.py	Fri Oct 31 10:46:56 2014 -0700
@@ -1068,6 +1068,7 @@
                     and (ref.startswith('refs/heads/')
                          or ref.startswith('refs/tags/'))):
                     filteredrefs.append(ref)
+            filteredrefs.sort()
 
         # the choice of OrderedDict vs plain dict has no impact on stock hg-git,
         # but allows extensions to customize the order in which refs are