mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 16:31:02 +03:00
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:
parent
79e05f3138
commit
52c656bd2b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user