Mercurial > hg > Members > anatofuz > growiBackup
changeset 2:cfb93034ed39
fix sort
author | anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 16 Dec 2020 15:12:19 +0900 |
parents | b8ad430d968d |
children | 48d40662fb04 |
files | backup.go |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/backup.go Wed Dec 16 15:05:07 2020 +0900 +++ b/backup.go Wed Dec 16 15:12:19 2020 +0900 @@ -53,7 +53,7 @@ path2Revision := make(map[string]Revision) for _, rev := range *revs { if prevRev, ok := path2Revision[rev.Path]; ok { - if prevRev.CreatedAt.Date.After(rev.CreatedAt.Date) { + if prevRev.CreatedAt.Date.Before(rev.CreatedAt.Date) { path2Revision[rev.Path] = rev } continue