mirror of
https://github.com/facebook/sapling.git
synced 2025-01-06 04:43:19 +03:00
hgweb: Sort tags by revision number
This commit is contained in:
parent
7d17d1db0c
commit
dbf12abbe4
@ -512,7 +512,10 @@ class hgweb:
|
||||
|
||||
self.repo.lookup(0) # prime the cache
|
||||
i = self.repo.tags.items()
|
||||
i.sort()
|
||||
n = [ (cl.rev(e[1]), e) for e in i ] # sort by revision
|
||||
n.sort()
|
||||
n.reverse()
|
||||
i = [ e[1] for e in n ]
|
||||
|
||||
def entries():
|
||||
parity = 0
|
||||
|
Loading…
Reference in New Issue
Block a user