'oldest first' now uses the revlog for correct ordering

This commit is contained in:
Damien Elmes 2017-09-06 13:02:52 +10:00
parent 38688ef8ef
commit 1d257c05ce

View file

@ -983,7 +983,7 @@ due = odue, odue = 0, odid = 0, usn = ? where %s""" % lim,
def _dynOrder(self, o, l):
if o == DYN_OLDEST:
t = "c.mod"
t = "(select max(id) from revlog where cid=c.id)"
elif o == DYN_RANDOM:
t = "random()"
elif o == DYN_SMALLINT: