Mercurial > hg > hg-git
diff hggit/git_handler.py @ 820: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 |
line wrap: on
line diff
--- a/hggit/git_handler.py +++ b/hggit/git_handler.py @@ -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