git_handler.filter_refs: sort returned refs if none are provided

Again, no direct impact in stock hg-git, but super useful for extensions.
This commit is contained in:
Siddharth Agarwal 2014-10-31 10:46:56 -07:00
parent 79e05f3138
commit 52c656bd2b

View File

@ -1068,6 +1068,7 @@ class GitHandler(object):
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