Skip to content
Snippets Groups Projects
Commit 82629678 authored by Siddharth Agarwal's avatar Siddharth Agarwal
Browse files

git_handler.filter_refs: sort returned refs if none are provided

Again, no direct impact in stock hg-git, but super useful for extensions.
parent 2c5e41d6
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment