mirror of
https://github.com/unisonweb/unison.git
synced 2024-09-11 10:35:57 +03:00
Merge pull request #5275 from unisonweb/cp/fix-reflog-sorting
This commit is contained in:
commit
2187b2e4e8
@ -3500,7 +3500,11 @@ getProjectReflog numEntries projectId =
|
||||
SELECT project_id, project_branch_id, time, from_root_causal_id, to_root_causal_id, reason
|
||||
FROM project_branch_reflog
|
||||
WHERE project_id = :projectId
|
||||
ORDER BY time DESC
|
||||
ORDER BY
|
||||
time DESC,
|
||||
-- Strictly for breaking ties in transcripts with the same time,
|
||||
-- this will break ties in the correct order, sorting later inserted rows first.
|
||||
ROWID DESC
|
||||
LIMIT :numEntries
|
||||
|]
|
||||
|
||||
@ -3512,7 +3516,11 @@ getProjectBranchReflog numEntries projectBranchId =
|
||||
SELECT project_id, project_branch_id, time, from_root_causal_id, to_root_causal_id, reason
|
||||
FROM project_branch_reflog
|
||||
WHERE project_branch_id = :projectBranchId
|
||||
ORDER BY time DESC
|
||||
ORDER BY
|
||||
time DESC,
|
||||
-- Strictly for breaking ties in transcripts with the same time,
|
||||
-- this will break ties in the correct order, sorting later inserted rows first.
|
||||
ROWID DESC
|
||||
LIMIT :numEntries
|
||||
|]
|
||||
|
||||
@ -3523,7 +3531,11 @@ getGlobalReflog numEntries =
|
||||
[sql|
|
||||
SELECT project_id, project_branch_id, time, from_root_causal_id, to_root_causal_id, reason
|
||||
FROM project_branch_reflog
|
||||
ORDER BY time DESC
|
||||
ORDER BY
|
||||
time DESC,
|
||||
-- Strictly for breaking ties in transcripts with the same time,
|
||||
-- this will break ties in the correct order, sorting later inserted rows first.
|
||||
ROWID DESC
|
||||
LIMIT :numEntries
|
||||
|]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user